Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with Visual Studio debugger

While debugging through the code, I am getting following error.

A debugger is attached to w3wp.exe but not configured to debug this unhandled exception. To debug this exception, detach the current debugger.

I tried the fix from the following link, but it won't work for me. http://social.msdn.microsoft.com/Forums/vstudio/en-US/373e738f-1bc7-4dcb-88b4-ee8e78d72dc1/an-unhandled-exception-was-raised-from-microsoft-net-framework-v-10-11-or-20-but-the-current?forum=vsdebug

It works fine when I use Visual Studio 2012, but it fails when using Visual Studio 2013. I tried repairing Visual Studio 2013, but It never worked.

Do anybody know the fix for it?

Thanks.

like image 760
Suraj D Avatar asked Nov 06 '13 08:11

Suraj D


1 Answers

Try This

  • Go to Project Properties
  • Debug
  • Change Debug type to Mixed(managed and native) from managed only for both Application and Background process.

You may be encountering this issue if you have native C code (unmanaged) and C# (managed) code in the same project.

Changing the debug type to mixed makes debugging significantly slow.

like image 141
Neelam Prajapati Avatar answered Oct 06 '22 01:10

Neelam Prajapati