“Thread was being aborted” error when debugging a

2019-07-16 14:30发布

I started getting this error recently when debugging a WEBAPI project (C#) in VS 2012 (update 2) on my dev machine. The app is hosted in IIS Express running locally on my dev box.

"Thread was being aborted".

The weird thing is that this error happens only when debugging. It works fine when the debugger is detached. It also seem to happen at random locations in the code file where I have breakoints set. Once the break point hits, I am able to step through upto a certain point and then the error occurs. I have tried to explicity catch the error and here is what I get when I try to expand the exception details. "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack". All the exception properties have the same error message.

NOTE: I have no Response.Redirects as many have pointed out could be the root cause.

Recently I had the following items installed on this box: 1)NodeJS 2)NodeJS Tools for Visual Studio 3)Web Essentials Tools 4)Doubled the RAM on my box from 8 to 16GB (max).

I have undone the above but not sure if any of those could be the root cause. Since unintalling I have also "Repaired" Visual Studio and also deleted my user profile and recreated it to no vain. I am attached to a windows domain. Not sure if this is a Visual Studio anomaly or whether my installation is genuinely screwed up.

Any help/insights appreciated.

0条回答
登录 后发表回答