首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MassTransit NullReferenceException in ThreadPoolConsumerPool

MassTransit NullReferenceException in ThreadPoolConsumerPool
EN

Stack Overflow用户
提问于 2013-11-27 10:33:33
回答 1查看 580关注 0票数 8

在ASP.NET中运行ASP.NET时,将抛出一个NullReferenceException,如下面报告的问题:谷歌讨论小组

相关细节

有人知道如何在AppDomain重新加载时优雅地捕获异常吗?

堆栈跟踪仅限于MassTransit DLL:

代码语言:javascript
复制
NullReferenceException in ThreadPoolConsumerPool

Locating source for 'd:\BuildAgent-03\work\8d1373c869590c5b\src\MassTransit\Threading\ThreadPoolConsumerPool.cs'. (No checksum.)
The file 'd:\BuildAgent-03\work\8d1373c869590c5b\src\MassTransit\Threading\ThreadPoolConsumerPool.cs' does not exist.
Looking in script documents for 'd:\BuildAgent-03\work\8d1373c869590c5b\src\MassTransit\Threading\ThreadPoolConsumerPool.cs'...
Looking in the projects for 'd:\BuildAgent-03\work\8d1373c869590c5b\src\MassTransit\Threading\ThreadPoolConsumerPool.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: d:\BuildAgent-03\work\8d1373c869590c5b\src\MassTransit\Threading\ThreadPoolConsumerPool.cs.
The debugger could not locate the source file 'd:\BuildAgent-03\work\8d1373c869590c5b\src\MassTransit\Threading\ThreadPoolConsumerPool.cs'.
EN

回答 1

Stack Overflow用户

发布于 2013-12-03 15:05:45

您应该能够在global.asax:http://msdn.microsoft.com/en-us/library/24395wz3(v=vs.100).aspx中捕获任何未察觉的异常。

实现错误处理程序:

代码语言:javascript
复制
void Application_Error(object sender, EventArgs e)

并将异常标记为已处理:

代码语言:javascript
复制
Server.ClearError();
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20239991

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档