VS 2008 “Unable to connect to the ASP.NET Development Server”

瘦欲@ 提交于 2019-12-12 20:23:44

问题


I have VS 2005 and VS 2008 installed side by side. It is interesting that I can use development server under VS 2005. But when I tried in VS 2008, it gave me an error "Unable to connect to the ASP.NET Development Server".

Any idea?

Thanks!


回答1:


Try checking the port configuration of VS 2008? If it's not set to automatic it may be using a port that is in use?
If it is set to auto-assign then try specifying a port and picking one which you know to be free.




回答2:


Just change the WebDev.WebServer.exe.manifest file with new working one or good working copy which is in the location:

C:\Program Files\Common Files\Microsoft Shared\DevServer\9.0\

Then restart.




回答3:


Finally I got it work by reinstalling VS 2008.




回答4:


You can edit the port developmentserver will use directly in your solution file. Simply edit the VWDPort property in the ProjectSection of the web project entry. First call netstat in your command line to chek if the current port is already in use. That did it for me.




回答5:


If your project is a website and not a web project then you can set the port properties from the property window.
Select the project from the solution explorer then press (ctrl+w then p) to bring up the property window.



来源:https://stackoverflow.com/questions/515354/vs-2008-unable-to-connect-to-the-asp-net-development-server

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