Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stackoverflow exception in VS 2015 but not in VS2010 how?

There is a webservice project written in VS2010 few years ago and the problem is all code exactly same (same PC , Tested with vs2010 and 2015 with the same code) but in vs2015 it gives error on debug mode. Options > "Projects & Solutions" settings are all same. I took this error and definition of it;

An unhandled exception of type 'System.StackOverflowException' occurred in System.Runtime.Serialization.dll

System.StackOverflowException was unhandled Message: An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

Anyone have idea about it , I'm really glad to attention. I could't share code because it's nearly 30.000 lines.

like image 326
BCA Avatar asked Aug 03 '16 11:08

BCA


1 Answers

SOLVED

Add this to the appSettings in your web.config:

<add key="vs:EnableBrowserLink" value="false" />

After VS 2013, by default VS automatically enables Browser Link. The StackOverflowException occurs, but doesn't include any details of what happened. You can check this link for more information about the browser link feature in VS 2013: https://blogs.msdn.microsoft.com/webdev/2013/06/28/browser-link-feature-in-visual-studio-preview-2013/

like image 130
BCA Avatar answered Oct 14 '22 12:10

BCA