最近,我开始在一个新的系统上与Sitecore合作。我安装了IIS,对它进行了配置,并且能够在IIS上构建和加载项目。在试图弄清楚为什么启动时间这么慢的时候,它开始给我这个错误。
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
我尝试了以下几点:
我不知道在这个时候还能做些什么。
有什么想法吗?
发布于 2014-07-29 14:17:29
Sitecore做的第一件事就是开始写一条消息,上面写着"HttpModule正在初始化“。在获得异常之前,您是否在日志中看到此消息?您所拥有的异常似乎表明初始加载试图提取要记录的消息的详细信息,但没有收到任何详细信息。
如果您检查您的日志文件,您应该能够看到日志记录在收到“null”消息和崩溃之前可以达到多远。这样,就可以更容易地识别下一个典型的信息行是什么,并跟踪正在发生的事情。
例如,下面是日志文件开头的一个典型的6.6个INFO块:
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
https://stackoverflow.com/questions/25016189
复制相似问题