IIS 错误,无法在网络服务器上开始调试 [英] IIS error, Unable to start debugging on the webserver
问题描述
我想在本地机器上从 IIS 运行我的应用程序.我创建了虚拟目录并将应用程序添加到其中,并在应用程序的属性文件夹中选中了使用本地 IIS Web 服务器"单选按钮.然后我开始运行我的应用程序,但出现以下错误:
I want to run my application from IIS on my local machine. I created the virtual directory and added the application to it and in the properties folder of the application I checked the radio button 'Use Local IIS Webserver'. I then started running my application but I'm getting the following error:
无法在网络服务器上开始调试.请参阅常见配置错误的帮助.在调试器之外运行网页可能会提供更多信息.
Unable to start debugging on the webserver.see help for common configuration errors.Running the webpage outside of the debugger may provide further information.
确保服务器正常运行.通过调试来验证 web.config 中没有语法错误.在不调试的情况下启动.您可能还需要参考在线文档中的 ASP.NET 和 ATL 服务器调试主题.
Make sure the server in operating correctly.Verify there are no syntax errors in web.config by doing a debug.Start Without Debugging.You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.
我如何摆脱这个错误?
我在 Windows 7 和 IIS 7.5 上使用 Visual Studio 2010.
I'm using Visual Studio 2010 on Windows 7 and IIS 7.5.
推荐答案
上述问题可能有多种原因.
There may be many reasons for the above problem.
您需要检查一下:- 无法在 Web 服务器上开始调试
附带说明:-转到 IIS 并检查您正在使用的应用程序池是否已启动.
On a side note:- Go to IIS and check that the App Pool you are using is started.
从你的命令行试试这个:-
Try this from your command line:-
cd %windir%\Microsoft.NET\Framework\v4.0.30319
aspnet_regiis.exe -i
这篇关于IIS 错误,无法在网络服务器上开始调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!