简体   繁体   English

在Server 2008 R2上的本地IIS中调试ASP.Net MVC

[英]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.

相关问题 2008 R2 IIS7.5上的ASP.NET MVC无法加载 - ASP.NET MVC on 2008 R2 IIS7.5 Not Loading Windows Server 2008 R2 + IIS 7.5 + ASP.NET 4.0 = HTTP错误500.0 - Windows Server 2008 R2 + IIS 7.5 + ASP.NET 4.0 = HTTP Error 500.0 Windows Server 2008 R2终端服务服务器上的ASP.Net本地调试 - ASP.Net local debug on a Windows Server 2008 R2 Terminal Services Server ASP.NET MVC3,旨在从SQL Server CE迁移到Server 2008 R2 - ASP.NET MVC3, tyring to migrate from SQL Server CE to Server 2008 R2 如何从asp.net将aspnetdb.mdf附加到SQL Server 2008 R2的本地实例? - How to attach aspnetdb.mdf to local instance of sql server 2008 R2 from asp.net? 如何在Windows Server 2008 R2上安装ASP.net MVC 2? - How to install ASP.net MVC 2 on Windows Server 2008 R2? asp.net中Windows Server 2008 R2上的PDF缩略图 - PDF Thumbnails on windows server 2008 R2 in asp.net 在ASP.NET中连接到SQL Server 2008 R2错误 - Connection to sql server 2008 R2 error in asp.net 在本地IIS服务器上调试ASP.NET应用程序 - Debugging an ASP.NET application on Local IIS Server ASP.NET 4.5 MVC 4无法在Windows Server 2008 IIS 7上运行 - ASP.NET 4.5 MVC 4 not working on Windows Server 2008 IIS 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM