Development World

New Development Technologies , Computer Last News , Tips & Tricks , UI , CSS , HTML , ASP , C# , .net Framework , Patterns & Practices & etc

Unable to connect to Visual Studio's Localhost Web Server

Screwing up an installation is so easy! I realized it when I was working on an issue today and had to uninstall the .NET Framework (that's different story ;o). I used my Control Panel and uninstalled it, but I was not done yet! I wanted to wipe out all traces of .NET 2.0 from my box and I deleted the C:\WINNT\Microsoft.NET\Framework\v2.0.50727 folder. Then I simply re-installed it and found that everything was working fine except the projects which were being accessed through FileSystem. I was not able to debug those projects at all... Even a CTRL+F5 wouldn't work!!

Here is the error message which I got...

Microsoft Visual Studio
Unable to connect to Visual Studio's Localhost Web Server

Very soon, I found that there is a file called WebDev.WebServer.exe which was located in C:\WINNT\Microsoft.NET\Framework\v2.0.50727 folder and it was gone since I deleted the folder itself! Aahh... too late... But I was really happy when I found that when I copied the file WebDev.WebServer.exe from one of my colleague's box, it worked absolutely fine :o) And that just saved me a lot of time!

I would have hated myself, if I had to re-install the VS 2005 just because of a simple mistake.

The point to be noted here are...
1) Don't use Shift+Del to delete important folders. It is better to rename it ;o) (as if you didn't know already!)
2) In case you do the same mistake as I did... find a person who has the file, and Copy + Paste!!
3) It seems like VS2005 installation puts the file (WebDev.WebServer.exe) in the Framework folder. Take good care of it :o)

نویسنده : Nasser Hajloo : ۱٢:۱٤ ‎ب.ظ ; ۱۳۸٧/٢/٥
Comments پيام هاي ديگران ()      لینک دائم