【发布时间】:2011-09-26 10:26:01
【问题描述】:
我已将我的 c# asp.net Web 应用程序从 .net 3.5 迁移到 .net 4.0,并将其运行的 IIS7 应用程序池更改为集成而不是经典。该站点运行良好,但我发现服务器事件日志中记录了以下警告:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 26/09/2011 11:19:10
Event time (UTC): 26/09/2011 10:19:10
Event ID: 5e750da6db8544feaede11ed88c072f6
Event sequence: 2
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/3/ROOT-2-129615059474458846
Trust level: Full
Application Virtual Path: /
Application Path: << REMOVED >>
Machine name: << REMOVED >>
Process information:
Process ID: 5864
Process name: w3wp.exe
Account name: << REMOVED >>\app_user
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at System.Web.HttpApplication.set_AsyncResult(HttpAsyncResult value)
at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
Request information:
Request URL: http://127.0.0.1/dummy.context
Request path: /dummy.context
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: << REMOVED >>\app_user
Thread information:
Thread ID: 22
Thread account name: << REMOVED >>\app_user
Is impersonating: False
Stack trace: at System.Web.HttpApplication.set_AsyncResult(HttpAsyncResult value)
at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
Custom event details:
任何想法可能导致这种情况,因为我不知道它可能是什么?
【问题讨论】:
-
我在 2008 R2 中使用 IIS 7 部署的一个应用程序中遇到了完全相同的错误。您对此有什么发现吗?似乎与 Spring.NET 有某种关系,但我找不到更多。
标签: iis-7 .net-4.0 migration nullreferenceexception