2

我正在尝试让 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 平台上运行。

4

2 回答 2

2

这是导致引发错误的逻辑:

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

因此,您可以看到需要满足 2 个标准。

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

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

其次,您的许可证需要包含 DMS(在内部将其称为“OMS”)。

于 2014-08-07T16:38:48.413 回答
0
if (Context.Site.EnableAnalytics)
{
...
}
于 2015-06-17T09:45:47.883 回答