Unable to start debugging on the web server. The debugger cannot connect to the remote computer in MVC

廉价感情. 提交于 2019-12-08 16:41:49

问题


I've just started to work on a MVC project. It's a web portal. I've set my sites on my local IIS 6.0 But when I want to start debugging, I get this error:

Unable to start debugging on the web server. The debugger cannot connect to the remote computer. The debugger was unable to resolve the specified computer name.

I don't understand that when I want to debug my project locally, what "Remote computer" it's talking about??!!

Please help me guys, this is my first task in this company and I have to overcome this error.


回答1:


Check all the steps outlined here: https://msdn.microsoft.com/en-us/library/dwesw3ee.aspx?f=255&MSPPError=-2147217396

If you're using a hosts file, make sure you have an entry for the site in question. That was the problem for me, when I encountered this message.




回答2:


I have similar problem. My first solution delete url site from iis repositories and project properties write localhost and port number if is it. And debug began working without restart. I also think, may be if add new url in windows host file this can fix this trouble but may be need restat iis or visual studio.

IIS Project properties



来源:https://stackoverflow.com/questions/39684127/unable-to-start-debugging-on-the-web-server-the-debugger-cannot-connect-to-the

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