问题描述
这是美好的一天,我走进工作和Sitecore的随机给了我这样的:
It was a beautiful day, and I came into work and Sitecore randomly gives me this:
[NullReferenceException: Object reference not set to an instance of an object.]
Sitecore.UIUtil.GetBrowserClassString() +491
Sitecore.sitecore.login.LoginPage.AddBrowserAttributes() +134
Sitecore.sitecore.login.LoginPage.OnPreRender(EventArgs e) +434
System.Web.UI.Control.PreRenderRecursiveInternal() +112
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4296
这不仅是一个中断所说的天,这是完全无章可循。它不会出现,我或者我的团队所做的任何影响的变化,它一直工作正常。
Not only was this an interruption to said day, it was altogether out of nowhere. It does not appear that I or any on my team have made any affecting changes, and it's been working fine.
任何想法?
推荐答案
我们有这个问题,使用Sitecore的6.5多站点Sitecore的实例。问题是,作为@WeekendWarrior提到,在 Capabitilities
类型是空
。我发现在解决方案;但是,我以为,因为你需要一个Sitecore的帐户来访问该论坛它会是有用这里复制发布答案的简单,快速修复部分:
We had this issue for a MultiSite Sitecore instance using Sitecore 6.5. The issue was that, as @WeekendWarrior alluded to, the Capabitilities
Type was null
. I found the solution on the Sitecore forum; however, I thought it'd be useful duplicate the simple, quick-fix part of the posted answer here because you need a Sitecore account to access the forum:
在您的默认网站的内容编辑器,找到 / Sitecore的/布局/设备/默认
,并在该领域功能型 - ,组装
输入:
In your default site Content Editor, locate /sitecore/layout/Devices/Default
and in the field Capabilities Type - Type, Assembly
enter:
Sitecore.Web.Configuration.InternetExplorerCapabilities,
Sitecore.Kernel
保存,然后发布项目。
这篇关于Sitecore的的NullReferenceException上GetBrowserClassString的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!