首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Sitecore测井异常

Sitecore测井异常
EN

Stack Overflow用户
提问于 2014-07-29 13:12:36
回答 1查看 2K关注 0票数 0

最近,我开始在一个新的系统上与Sitecore合作。我安装了IIS,对它进行了配置,并且能够在IIS上构建和加载项目。在试图弄清楚为什么启动时间这么慢的时候,它开始给我这个错误。

代码语言:javascript
运行
复制
 Value cannot be null.
Parameter name: message
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: message

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: message]
   Sitecore.Diagnostics.Log.Info(String message, Object owner) +309
   Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +557
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +530
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Value cannot be null.
Parameter name: message]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12966756
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12806561

我尝试了以下几点:

  • 为TFS和重新构建执行一个完整的get (重写所有)
  • 提取开发环境上的文件的确切副本(这是工作的)
  • 禁用Sitecore中的测井
  • 从我的本地系统中删除该项目,并再次从TFS中删除它,重新构建
  • 删除inetpub www文件夹IIS指向并重新构建
  • 移除和重新添加IIS站点和应用程序池。
  • 卸载IIS并重新安装它
  • 从ASP.NET框架文件夹中删除临时.NET文件
  • 清除IIS配置文件(以及重新安装)
  • 清除.NET machine.config文件并修复.NET
  • 向IIS重新注册.NET
  • 更改应用程序池用户
  • 向inetpub文件夹、.NET框架文件夹(C:\Windows\Microsoft.NET.)授予非常宽松的权限
  • 将应用程序池用户添加到性能日志用户,性能监视器用户
  • 从/App_ config /Include/删除所有配置文件

我不知道在这个时候还能做些什么。

有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2014-07-29 14:17:29

Sitecore做的第一件事就是开始写一条消息,上面写着"HttpModule正在初始化“。在获得异常之前,您是否在日志中看到此消息?您所拥有的异常似乎表明初始加载试图提取要记录的消息的详细信息,但没有收到任何详细信息。

如果您检查您的日志文件,您应该能够看到日志记录在收到“null”消息和崩溃之前可以达到多远。这样,就可以更容易地识别下一个典型的信息行是什么,并跟踪正在发生的事情。

例如,下面是日志文件开头的一个典型的6.6个INFO块:

代码语言:javascript
运行
复制
10024 10:26:13 INFO  HttpModule is being initialized
10024 10:26:13 INFO  
10024 10:26:13 INFO  **********************************************************************
10024 10:26:13 INFO  **********************************************************************
10024 10:26:13 INFO  Sitecore started
10024 10:26:13 INFO  Sitecore.NET 6.6.0 (rev. 130529)
10024 10:26:13 INFO  
10024 10:26:13 INFO  C:\Src\TFS\Path\Website\bin\Sitecore.Client.dll (Sitecore CMS, Sitecore Client Application, 6.6.0 rev. 130529)
10024 10:26:13 INFO  C:\Src\TFS\Path\Website\bin\Sitecore.Kernel.dll (Sitecore CMS, Sitecore CMS Kernel Library, 6.6.0 rev. 130529)
10024 10:26:13 INFO  C:\Src\TFS\Path\Website\bin\Sitecore.Nexus.dll (Sitecore.Nexus)
10024 10:26:13 INFO  
10024 10:26:13 INFO  Operating system Microsoft Windows NT 6.1.7601 Service Pack 1
10024 10:26:13 INFO  
10024 10:26:13 INFO  Microsoft.NET version 4.0.30319.18444
10024 10:26:13 INFO  
10024 10:26:13 INFO  Process id: 12132
10024 10:26:13 INFO  Windows identity used by the process: IIS APPPOOL\MyAppPoolUser. Impersonation: True
10024 10:26:13 INFO  Managed pipeline mode: Integrated
10024 10:26:13 INFO  
10024 10:26:13 INFO  EventQueues enabled: False
10024 10:26:13 INFO  Instance Name:MyInstanceName
10024 10:26:13 INFO  
10024 10:26:13 INFO  Threshold settings
10024 10:26:13 INFO    Show threshold warnings: False
10024 10:26:13 INFO  
10024 10:26:13 INFO  Databases
10024 10:26:13 INFO    core
10024 10:26:13 INFO    master
10024 10:26:13 INFO    web
10024 10:26:13 INFO    filesystem
10024 10:26:13 INFO  
10024 10:26:13 INFO  Domains
10024 10:26:13 INFO  Heartbeat - Initializing
10024 10:26:13 INFO  Heartbeat - Interval set to: 00:00:02
10024 10:26:13 INFO  Heartbeat - Worker thread started
10024 10:26:13 INFO  Trying to load XML configuration /App_Config/Security/Domains.config
10024 10:26:13 INFO    sitecore
10024 10:26:13 INFO    extranet
10024 10:26:13 INFO    default
10024 10:26:13 INFO  **********************************************************************
10024 10:26:13 INFO  **********************************************************************
10024 10:26:13 INFO  Attempting to get ASP.NET process history
10024 10:26:13 WARN  No process history available
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25016189

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档