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

时间:2022-09-20 23:21:45

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. I obviously had to switch to use the custom IIS web server. I followed all the steps to do this i.e. 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.

我在Visual Studio的内部IIS中的localhost上运行我的asp.net应用程序,出于测试目的,我试图在家里的LAN上托管我的网站。我显然不得不切换到使用自定义IIS Web服务器。我按照所有步骤执行此操作,即我从控制面板中的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. The web server did not respond in a timely manner. This may be because another debugger is already attached to the web server.

无法在Web服务器上启动调试。 Web服务器没有及时响应。这可能是因为另一个调试器已经附加到Web服务器。

What is the cause of this error and how can I solve it?

导致此错误的原因是什么?如何解决?

Thanks

谢谢

2 个解决方案

#1


1  

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. Also I have notice that if you do not have default browser the IE it may also fail. So for me, to move on, call the debugger from the page.

要解决此问题并使其能够从VS启动调试器,您必须配置启动页面以查看项目属性上的本地IIS。另外我注意到如果你没有默认浏览器IE它也可能会失败。所以对我来说,继续前进,从页面调用调试器。

#2


1  

I have the same problem and I solved it by reseting iis from cmd => "iisreset"

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

#1


1  

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. Also I have notice that if you do not have default browser the IE it may also fail. So for me, to move on, call the debugger from the page.

要解决此问题并使其能够从VS启动调试器,您必须配置启动页面以查看项目属性上的本地IIS。另外我注意到如果你没有默认浏览器IE它也可能会失败。所以对我来说,继续前进,从页面调用调试器。

#2


1  

I have the same problem and I solved it by reseting iis from cmd => "iisreset"

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