简体   繁体   English

在IIS上运行ASP.net应用程序 - 超时错误

[英]Running ASP.net application on IIS - timeout error

I was running my asp.net application on localhost in the internal IIS for Visual Studio and for Testing purposes I was trying to host my website on my LAN at home. 我在Visual Studio的内部IIS中的localhost上运行我的asp.net应用程序,出于测试目的,我试图在家里的LAN上托管我的网站。 I obviously had to switch to use the custom IIS web server. 我显然不得不切换到使用自定义IIS Web服务器。 I followed all the steps to do this ie I turned on IIS from the windows features in control panel and added my web application to IIS and configured VS settings to use that server and gave it a start URL. 我按照所有步骤执行此操作,即我从控制面板中的Windows功能打开IIS并将我的Web应用程序添加到IIS并配置VS设置以使用该服务器并为其提供了一个起始URL。

However when I run my project I am getting an error message: 但是,当我运行我的项目时,我收到一条错误消息:

Unable to start debugging on the web server. 无法在Web服务器上启动调试。 The web server did not respond in a timely manner. Web服务器没有及时响应。 This may be because another debugger is already attached to the web server. 这可能是因为另一个调试器已经连接到Web服务器。

What is the cause of this error and how can I solve it? 导致此错误的原因是什么?如何解决?

Thanks 谢谢

One workaround is to make an empty page and you call the debugger from it as 一种解决方法是创建一个空页面,然后从中调用调试器

System.Diagnostics.Debugger.Launch();

To solve it and make possible to start the debugger from the VS you must configure the start up page to see the local IIS on the properties of your project. 要解决此问题并使其能够从VS启动调试器,您必须配置启动页面以查看项目属性上的本地IIS。 Also I have notice that if you do not have default browser the IE it may also fail. 另外我注意到如果你没有默认浏览器IE它也可能会失败。 So for me, to move on, call the debugger from the page. 所以对我来说,继续,从页面调用调试器。

我有同样的问题,我通过从cmd =>“ iisreset ”重新设置iis来解决它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM