[英]Debugging ASP.Net MVC in local IIS on Server 2008 R2
I am having issues debugging locally within Visual Studio 2010 on Server 2008 R2 (x64) for a new ASP.Net MVC application. 我在新的ASP.Net MVC应用程序的Server 2008 R2(x64)上的Visual Studio 2010中进行本地调试时遇到问题。 I am able to debug using the VS Development Server (Cassini) but when I change to use the Local IIS Web Server and Create Virtual Directory, I am unable to debug.
我可以使用VS开发服务器(Cassini)进行调试,但是当我更改为使用本地IIS Web服务器并创建虚拟目录时,将无法调试。 I get the standard VS message:
我得到标准的VS消息:
"Unable to start debugging on the web server. The web server is not configured correctly. ..." “无法在Web服务器上开始调试。Web服务器未正确配置。...”
Everything looks standard in IIS. 一切在IIS中看起来都是标准的。 The Default Web Site is running under the ASP.NET v4.0 application pool.
默认网站在ASP.NET v4.0应用程序池下运行。 The virtual directory that Visual Studio created is running under the same app pool.
Visual Studio创建的虚拟目录在同一应用程序池下运行。 I am running Visual Studio as the Administrator account.
我正在以管理员帐户运行Visual Studio。 It feels like some security setting or something is preventing this to work but I'm at a loss to what it could be.
感觉有些安全设置或某些措施阻止了此功能正常工作,但我对此一无所知。
对我有用的解决方案是运行aspnet_regiis -i。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.