【问题标题】:warning occurring following move from classic to integrated on IIS7在 IIS7 上从经典迁移到集成后出现警告
【发布时间】: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


【解决方案1】:

(技术难度:我无法为您的问题添加评论,但似乎我可以将其添加为答案)

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

【讨论】:

  • 从我对问题的阅读来看,这个异常应该只发生在应用程序启动时。如果经常发生,那么你需要调查一下应用为什么会重启,即应用池为什么会被回收。
【解决方案2】:

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

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,但它可能是别的东西。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-10
    • 2011-10-25
    相关资源
    最近更新 更多