问题
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:
Replace
WebDev.WebServer.exe
with another exeC:\Program Files (x86)\Common Files\microsoft shared\DevServer\9.0\WebDev.WebServer.exe
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