Sitecore:DMS 7.1 Analytics已禁用

时间:2014-08-07 14:25:52

标签: sitecore sitecore7 sitecore-dms sitecore7.1

我想让Sitecore DMS 7.1正常工作。我按照sitecore支持页面上的说明进行操作。我仔细检查了本网站提到的所有步骤。

https://www.sitecore.net/Learn/Blogs/Technical-Blogs/John-West-Sitecore-Blog/Posts/2011/08/Troubleshooting-Analytics-is-Disabled-with-the-Sitecore-Customer-Engagement-Platform.aspx#comments

我查看了日志文件,我正在接收。

3112 10:20:35 ERROR Application error.
Exception: System.Web.HttpException
Message: Online Marketing Suite is not enabled
Source: mscorlib

Server stack trace: 
   at Sitecore.Analytics.Reports.ReportDataHandler.AssertState(HttpContext context)
   at Sitecore.Analytics.Reports.ReportDataHandler.ProcessRequest(HttpContext context)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
   at Sitecore.Analytics.Reports.ReportDataHandler.RequestProcessor.EndInvoke(IAsyncResult result)
   at Sitecore.Analytics.Reports.ReportDataHandler.EndProcessRequest(IAsyncResult result)
   at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)

帮助。我们有其他sitecore站点,我能够在sitecore 7平台上运行它。

2 个答案:

答案 0 :(得分:2)

以下是导致错误抛出的逻辑:

public static bool Enabled
{
    get
    {
        if (Settings.GetBoolSetting("Analytics.Enabled", false))
            return Sitecore.SecurityModel.License.License.HasModule("Sitecore.OMS");
        else
            return false;
    }
}

所以你可以看到有两个标准需要满足。

首先," Analytics.Enabled"分析配置文件中的设置需要设置为true。它应该如下所示。

<!--
     ANALYTICS ENABLED
     Determines whether analytics is enabled or not.
     Default: true  
-->
<setting name="Analytics.Enabled" value="true" />

其次,您的许可证需要包含DMS(它将其称为&#34; OMS&#34;内部)。

答案 1 :(得分:0)

if (Context.Site.EnableAnalytics)
{
...
}