ASP.NET MVC5 / IIS防爆preSS无法调试 - code未运行 [英] ASP.NET MVC5/IIS Express unable to debug - Code Not Running

查看:1853
本文介绍了ASP.NET MVC5 / IIS防爆preSS无法调试 - code未运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始VS2013 VB.Net MVC5 Web应用程序,在HomeController中设置断点关于方法和运行开始调试,浏览到关于网页,并收到code不运行的消息 - 当前线程当前没有运行或无法获得调用栈 preventing任何调试。

I start a VS2013 VB.Net MVC5 Web Application, set a breakpoint in HomeController About method and run "Start Debugging", navigate to About page and receive the message "Code not running - The current Thread is not currently running or the call stack could not be obtained" preventing any debugging.

如果我在Global.asax中的Application_Start设置断点,断点工作正常。更改启用编辑和放大器;继续。没有什么区别

If I set a breakpoint in Global.asax Application_Start, the breakpoint works fine. Changing the "Enable Edit & Continue" makes no difference.

任何人有什么发生什么想法?

Anyone have any ideas what is happening?

更新:我的环境是8.0的Windows与临终极VS2013。

Update: My environment was Windows 8.0 Pro with VS2013 Ultimate.

因为我有我的冲洗系统,做一个完全新鲜的安装Windows 8.1专业版,旗舰版VS2010,VS2012旗舰版,和放大器; VS2013旗舰版。

I have since flushed my system and done a completely fresh install of Windows 8.1 Pro, VS2010 Ultimate, VS2012 Ultimate, & VS2013 Ultimate.

同样的测试在所有3个版本的VS做 - 文件>新建项目> MVC(默认)。 VS的所有3种版本都报告过程用xxx的ID没有运行。

Same test done on all 3 versions of VS - File > New Project > MVC (Default). All 3 versions of VS are reporting "Process with an Id of xxx is not running."

VS2013调试跟踪报告程序[7720] iisex press.exe:程序跟踪'已退出与code 0(为0x0)方案[XXXX] iisex press.exe已退出与code -1073741816(0xc0000008)无效句柄指定。

VS2013 debug trace reports "The program '[7720] iisexpress.exe: Program Trace' has exited with code 0 (0x0). The program '[xxxx] iisexpress.exe' has exited with code -1073741816 (0xc0000008) 'An invalid handle was specified'."

我在和退出管理模式下运行VS并获得相同的结果。我已经卸载和重新安装IIS前preSS 8.0。

I have run VS in and out of Administrator mode and receive the same results. I have uninstalled and reinstalled IIS Express 8.0.

推荐答案

对于上述问题的解决方案是一个简单的问题。关闭开发环境上,转到Documents文件夹重命名IISEx preSS。现在设置环境变量_CSRUN_DISABLE_WORKAROUNDS(参考:<一href=\"http://gauravmantri.com/2013/02/05/workaround-for-iis-ex$p$pss-crashing-when-running-windows-azure-cloud-service-web-role-with-multiple-instances-in-windows-azure-sdk-1-8-compute-emulator/\">http://gauravmantri.com/2013/02/05/workaround-for-iis-ex$p$pss-crashing-when-running-windows-azure-cloud-service-web-role-with-multiple-instances-in-windows-azure-sdk-1-8-compute-emulator/ )。

The solution to the above problem was a simple one. Close down dev environments, go to Documents folder and rename IISExpress. Now set environment variable _CSRUN_DISABLE_WORKAROUNDS ( ref: http://gauravmantri.com/2013/02/05/workaround-for-iis-express-crashing-when-running-windows-azure-cloud-service-web-role-with-multiple-instances-in-windows-azure-sdk-1-8-compute-emulator/ ).

现在重新启动电脑,启动VS,负载的网站,并在调试运行。 IIS自动重新生成的IISEx preSS文件夹和环境变量解决冲突。

Now reboot PC, start VS, load website and run in debug. IIS automatically regenerated the IISExpress folder and the environment variable resolved conflicts.

这篇关于ASP.NET MVC5 / IIS防爆preSS无法调试 - code未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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