Stackoverflow exception in VS 2015 but not in VS2010 how?

A few years ago there was a webservice project written in VS2010, and the problem is that all the codes are the same (the same PC, tested with vs2010 and 2015 with the same code), but in vs2015 it gives an error in debug mode. Options> Projects and Solutions are the same. I accepted this error and its definition;

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

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

Anyone have an idea about this, I am very happy to hear. I could not use the code because it has almost 30,000 lines.

+8
source share
2 answers

solvable

Add this to appSettings in your web.config:

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

After VS 2013, by default, VS automatically activates a link to the browser. A StackOverflowException is thrown, but does not contain any details about what happened. You can check this link for more information on the browser link function in VS 2013: https://blogs.msdn.microsoft.com/webdev/2013/06/28/browser-link-feature-in-visual-studio- preview-2013 /

+16
source

You got this error, what are you going to do ....

Your project stops and does not work, but usually it does not concern your code.

Of course, it depends on how you code, but if you haven't written any infinite loop, that’s fine.

It concerns Visual Studio 2013, it tries to send long serialized data to the browser due to the option to include a link to the browser .

You can solve this problem in two ways.

Add this to appSettings in your web.config

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

or

You can disable the following option in the tool menu

Click here

0
source

All Articles