VS 2015 中的 Stackoverflow 异常,但 VS2010 中没有,怎么办? [英] Stackoverflow exception in VS 2015 but not in VS2010 how?

查看:20
本文介绍了VS 2015 中的 Stackoverflow 异常,但 VS2010 中没有,怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几年前有一个用 VS2010 编写的 webservice 项目,问题是所有代码完全相同(同一台 PC,用相同的代码在 vs2010 和 2015 上测试)但在 vs2015 中它在调试模式下出错.选项>项目和解决方案"设置都是一样的.我接受了这个错误和它的定义;

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;

System.Runtime.Serialization.dll 中发生类型为System.StackOverflowException"的未处理异常

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

System.StackOverflowException was unhandled 消息:mscorlib.dll 中发生类型为System.StackOverflowException"的未处理异常

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

任何人都对此有想法,我很高兴关注.我无法共享代码,因为它将近 30.000 行.

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

推荐答案

SOLVED

将此添加到您的 web.config 中的 appSettings:

Add this to the appSettings in your web.config:

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

VS 2013 之后,默认情况下 VS 会自动启用浏览器链接.StackOverflowException 发生,但不包括发生的任何细节.您可以查看此链接以获取有关 VS 2013 中浏览器链接功能的更多信息:https://blogs.msdn.microsoft.com/webdev/2013/06/28/browser-link-feature-in-visual-studio-preview-2013/

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/

这篇关于VS 2015 中的 Stackoverflow 异常,但 VS2010 中没有,怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆