Unable to Connect to the ASP.NET Development Server VS2010

懵懂的女人 提交于 2019-12-08 05:15:57

问题


I realise this question has been asked many times before and I've tried pretty much every solution out there but I still keep getting this annoying error.

I've tried killing off the WebDev.WebServer40 process as suggested here. I've disabled IPv6 and my firewall, I've also looked inside my "C:\Windows\Microsoft.NET\Framework\v4.0.30319" folder for WebDev.WebServer and it doesn't exist in that directory, even when I download a fresh one and place it there it still doesn't work.

All my other web projects work fine and don't have this problem, but this particular Web Site keeps giving me this error when I try to run it.

I'm using VS2010 and .NET Framework 4.0.

Any help would be greatly appreciated.


回答1:


  1. Replace WebDev.WebServer.exe with another exe C:\Program Files (x86)\Common Files\microsoft shared\DevServer\9.0\WebDev.WebServer.exe

  2. Restart your machine .

I tried every thing before restarting the machine but all failed.

You can use this exe from http://www.4shared.com/rar/4CXREKtb/WebDevWebServer.html





回答2:


Open the solution file with a text editor like Notepad++, there is a property of the solution called VWDPort, the value of this property is the port used to publish the website, delete the port leaving the property VWDPort = ""; when you start debugging again, .Net will choose a new FREE port. Problem Solved!

Hope it helps




回答3:


I also had the same problem, what I did is I just terminate the "WebDev.WebServer40.EXE" process then restart the Project and its worked.




回答4:


I had to move my DevServer folder to C:\Program Files\Common Files\microsoft shared\DevServer dir.
from its current location C:\Program Files (x86)\Common Files\microsoft shared\DevServer After doing so the problem was fixed :)
Originally posted here by spankster:
http://forums.asp.net/post/2426735.aspx




回答5:


I just restarted my machine and it worked.



来源:https://stackoverflow.com/questions/8543586/unable-to-connect-to-the-asp-net-development-server-vs2010

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