Unable to Start Debugging on the WebServer

点点圈 提交于 2020-01-07 06:50:10

问题


While creating the website I choose Location as HTTP and then provided http://172.24.17.188/myProject and it created the project happily.

And I was able to run the project too. But once I have closes the VS2008 and reopened the project , I am getting the following error while trying to run the website.

Edit: I am able to browse the website by manually typing in browser but unable to run or debug usinh VS2008.

回答1:


If the website is running on IIS on the same machine then you can attach the debugger to the IIS process. You do this by click on "Debug" then "Attach to process...". Sort the processes in descending order and find the process named "w3wp.exe". Then click the "Attach" button. If you don't see the process then view the site in a browser to allow IIS to start the process.

If the website is running on a different server then you can do the same but you need to run the remote debugging tool (MSVSMON). This means you will need to have Visual Studio installed on the webserver. Run MSVSMON and be sure the firewall doesn't block the connection. Now you click "Debug" then "Attach to process...". Enter the server name that was displaed on MSMON's debug window in the qualifier textbox. If everything is setup properly you will see the remote servers process list. Then you can connect to the "w3wp.exe" process.

These are two ways to debug web applications using Visual Studios and IIS.




回答2:


Do the following changes in your IIS settings

  • Make sure that IIS is configured to use Integrated Windows Authentication
  • Make sure that HTTP Keep Alives are enabled.


来源:https://stackoverflow.com/questions/6123724/unable-to-start-debugging-on-the-webserver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!