我最近开始在一个新系统上使用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
我尝试了以下内容:
我不确定此时还有什么可以尝试。
有什么想法吗?
答案 0 :(得分:0)
Sitecore所做的第一件事就是开始写出一条消息,说明"正在初始化HttpModule"。在您收到异常之前,您是否在日志中看到此消息?您遇到的异常似乎表明初始加载尝试提取要记录的消息的详细信息但未接收任何消息。
如果您检查日志文件,您应该能够看到日志记录在获取“空白”之前可以获得的距离。消息和炸毁。从那里,将更容易确定下一个典型信息线将是什么,并追踪正在发生的事情。
例如,以下是日志文件开头的典型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