【发布时间】:2014-07-29 13:12:36
【问题描述】:
我最近开始在一个新系统上与 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
我尝试了以下方法:
- 为 TFS 执行完整获取(覆盖所有)并重新构建
- 提取开发环境中文件的精确副本(有效)
- 在 Sitecore 中禁用日志记录
- 从我的本地系统中删除项目并从 TFS 中再次将其拉下,重建
- 删除 IIS 指向的 inetpub www 文件夹并重新构建
- 删除并重新添加 IIS 站点和应用程序池
- 卸载 IIS 并重新安装
- 从 .NET 框架文件夹中删除临时 ASP.NET 文件
- 清除 IIS 配置文件(以及重新安装)
- 清除 .NET machine.config 文件并修复 .NET
- 向 IIS 重新注册 .NET
- 更改应用程序池用户
- 向 inetpub 文件夹、.NET 框架文件夹 (C:\Windows\Microsoft.NET...) 授予非常宽松的权限
- 将应用程序池用户添加到性能日志用户、性能监视器用户
- 从 /App_Config/Include/ 中删除所有配置文件
目前我不确定还可以尝试什么。
有什么想法吗?
【问题讨论】:
-
听起来您在某个地方遇到了配置问题。我将首先从 SDN 上的可下载 zip 替换 web.config 和
/App_Config中的所有内容,然后再次部署您的代码。如果您仍然遇到问题,请同时删除/bin中的所有内容,从 zip 中替换并重新部署 -
我不相信是这样的。从开发环境(运行良好)复制文件没有任何效果 - 它仍然会给出错误。如果这是一个配置问题,要么 dev 也会被破坏,或者精确的副本在本地可以正常工作。
-
我用库存的 Sitecore 6.6 webconfig 替换了 web 配置,清除了
/App_Config/Include并将其他/App_Config文件更新为默认值。没有改善:(
标签: iis-7.5 sitecore sitecore6