在IIS7上从经典移动到集成后发生警告

时间:2011-09-26 10:26:02

标签: iis-7 .net-4.0 migration nullreferenceexception

我已将我的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: 

任何可能导致这种情况的想法,因为我对它可能是什么感到难过?

2 个答案:

答案 0 :(得分:1)

(技术难度:我在为问题添加评论时遇到问题,但似乎我可以将其添加为问题)

我遇到了同样的错误。在这个链接中https://jira.springsource.org/browse/SPRNET-1456他们说这是一个“不会被修复”的错误

答案 1 :(得分:0)

我遇到此错误并查看了事件查看器。在其他几个错误中,我有这个和另一个(这是一个信息):

Information 14/11/2011 13:54:04 Windows Error Reporting 1001    None

细节:

Fault bucket , type 0
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: w3wp.exe
P2: 7.5.7601.17514
P3: 4ce7afa2
P4: mscorlib
P5: 4.0.0.0
P6: 4e1823db
P7: f5
P8: 9
P9: System.StackOverflowException
P10: 

Attached files:

These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_w3wp.exe_426513163e392f7b5e2712abb67e65a456d0f5_015c843b

Analysis symbol: 
Rechecking for solution: 0
Report Id: b8a9aec0-0ebf-11e1-86d9-001d927c2d4c
Report Status: 0

所以这是一个stackoverflow。我猜你看到的错误只是另一个错误的神器。您应该尝试调查此其他错误。我不是说它会像我一样堆栈溢出,但它可能是别的东西。