Stackoverflow exception in VS 2015 but not in VS2010 how?

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/