windows 无法启动 ASP.NET 或 ATL Server 调试
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3649876/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Could not start ASP.NET or ATL Server debugging
提问by onder
I installed Visual Studio 2003 on Windows 7 but I am getting the following error on when I press the F5
for debugging.
我在 Windows 7 上安装了 Visual Studio 2003,但是当我按下F5
调试按钮时出现以下错误。
Error while trying to run project: Unable to start debugging on the web server.
Could not start ASP.NET or ATL Server debugging.
Verify that ASP.NET or ATL Server is correctly installed on the server.
What does that mean and how do I fix it?
这是什么意思,我该如何解决?
回答by Sachin Shanbhag
The cause for this as per microsoft support is -
根据微软支持,造成这种情况的原因是 -
This problem occurs because the debugger does not send the debug action to IIS when you run the application. The debugger identifies your computer as localhost. However, in IIS, the Web Site Identification of the application is the IP address that you specified
出现此问题的原因是调试器在您运行应用程序时不会将调试操作发送到 IIS。调试器将您的计算机识别为 localhost。但是,在 IIS 中,应用程序的网站标识是您指定的 IP 地址
The resolution is as given below -
决议如下——
http://support.microsoft.com/kb/814717
http://support.microsoft.com/kb/814717
回答by onder
I found answer :
我找到了答案:
iis manager -> computer name -> ISAPI and CGI restrictions -> aspnet v1.1... -> select allowed
iis 管理器 -> 计算机名称 -> ISAPI 和 CGI 限制 -> aspnet v1.1... -> 选择允许
(dont forget restart IIS.)
(不要忘记重新启动 IIS。)
回答by Yoosaf Abdulla
I tried all the options but in vain. My solution was:
我尝试了所有的选择,但徒劳无功。我的解决方案是:
- Go to properties page of the application in VS2010
a. check you have selected 'Define DEBUG constant' b. check you have selected 'Use Visual Studio development server' under the Server. i) select 'Auto-assign Port' c. check you have selected 'Apply server settings to all users' d. check you have selected 'asp.net' under Debuggers
- 在 VS2010 中转到应用程序的属性页面
。检查您是否选择了“定义调试常量” b。检查您是否在服务器下选择了“使用 Visual Studio 开发服务器”。i) 选择“自动分配端口” c。检查您是否选择了“将服务器设置应用于所有用户” d。检查您是否在调试器下选择了“asp.net”
Mine all the above were messy. I did the same and it worked.
我的以上都是乱七八糟的。我做了同样的事情,它奏效了。
回答by user2338552
May be you have to install another server on your computer, so it conflict with IIS server. You have to change another server port address or remove from your computer.
可能是您的计算机上必须安装另一台服务器,因此它与 IIS 服务器冲突。您必须更改另一个服务器端口地址或从您的计算机中删除。
回答by sanrns
Simple steps to solve this error!! Make sure the following things are intact:
解决这个错误的简单步骤!!确保以下物品完好无损:
- Check if your application pool is stopped. If so, start it. Also make sure the framework of the pool matches with that of your application.
- Virtual directories in IIS need to bear the same nameas its original application directory
- Clear Temp files, Temp ASP files, delete the worker process of the application and restart your IIS.
- 检查您的应用程序池是否已停止。如果是这样,请启动它。还要确保池的框架与您的应用程序的框架相匹配。
- IIS 中的虚拟目录需要与其原始应用程序目录同名
- 清除临时文件、临时 ASP 文件,删除应用程序的工作进程并重新启动 IIS。
Here's a link that will help you setup ASP.Net 1.1 and its requisites, in case, the above didn't help you. How to setup asp.net v1.1
这是一个链接,可以帮助您设置 ASP.Net 1.1 及其必备条件,以防以上内容对您没有帮助。 如何设置asp.net v1.1