加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

.net – 在mscorlib.dll中发生类型“System.Threading.ThreadAbo

发布时间:2020-12-13 21:14:09 所属栏目:Windows 来源:网络整理
导读:我正在开发asp.net应用程序..当我尝试编译和运行应用程序;它运行成功。 但是当我尝试调试应用程序时,会给我任何错误 – mscorlib.dll中出现了“System.Threading.ThreadAbortException”类型的第一个机会异常 它不会在任何特定的代码行错误。它给出任何代码
我正在开发asp.net应用程序..当我尝试编译和运行应用程序;它运行成功。

但是当我尝试调试应用程序时,会给我任何错误 –

mscorlib.dll中出现了“System.Threading.ThreadAbortException”类型的第一个机会异常

它不会在任何特定的代码行错误。它给出任何代码行(不确定)..然后网页显示 – “服务器应用程序不可用”错误的错误。

即使我试图在即时窗口/快速观察中解析/执行一些声明 – 它给我上面的错误..

例如,我在XElement中加载了一个xml文档(超过10000行),当我尝试通过xpath检查一些属性值为XElementObj.XPathSelectElement(“/ asdf / asd / wqer / xyz”)..它给出了上面的错误(不是所有的时间,而是随机)。

任何人有任何想法这个..请帮助。

我有类似的东西,从另一个问题发现了 this answer:

If you want to pinpoint where the
exceptions are occurring,you can
select the Debug->Exceptions menu
item,and in the dialog that appears,
check the first checkbox for “Common
Language Runtime Exceptions”. This
will make the debugger break as soon
as an exception occurs instead of only
breaking on unhandled exceptions.

This is also one reason why it is generally a bad idea to catch generic exceptions unless you are clearly logging the information caught.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读