Geeks With Blogs
Wes Weeks

After installing sp1 on Windows Vista, my previously created web sites would no longer start and I got the following error:

WebDev.WebServer.exe has stopped working
Unable to connect to the ASP.NET Development Server

with the following exception:

System.Net.Sockets.SocketException was unhandled
  Message="An attempt was made to access a socket in a way forbidden by its access permissions"
  Source="System"
  ErrorCode=10013
  NativeErrorCode=10013
  StackTrace:
       at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
       at System.Net.Sockets.Socket.Bind(EndPoint localEP)
       at Microsoft.VisualStudio.WebHost.Server.Start()
       at Microsoft.VisualStudio.WebServer.WebServerApp.Main(String[] args)

The work around?  Unbind from Visual Source safe, delete the web project from the solution, rename the folder where the website is stored and then re add to the solution as an existing web site and then bind to source safe again.

While this works, I would prefer not to have to rename every folder where I have a web site.  The issue appears to be that somewhere Visual Studio stores all of the information about a web site that has been created.  If you don't perform the folder rename, when you add the web site back in you will see that it has the same dynamic port settings it had originally.  It is renaming that forces the new port and whatever else is going on behind the scenes that restores the functionality.

I've tried to find out where this site info is stored so I can delete it or correct it, but have been unsuccessful.  I've searched in the registry, tried deleteing the temporary asp.net files and poked around the numerous config files and have been unable to find it so I'm stuck with the rename option.

Does anyone know where this is stored or how to clear it out so VS will reset itself for these sites?

Posted on Friday, August 22, 2008 7:33 AM | Back to top


Comments on this post: Visual Studio 2008 SP1 Causes WebDev.WebServer.exe crash

# re: Visual Studio 2008 SP1 Causes WebDev.WebServer.exe crash
Requesting Gravatar...
I just installed SP1 yesterday and, while things ran fine yesterday with a brand new project, when I returned to it this morning I hit the same problem you've described. In my case changing from a dynmic port (with changed port number) got me past this error. Not sure if that will hold up after a restart or not... We'll see.
-James
Left by James on Oct 29, 2008 7:58 AM

# re: Visual Studio 2008 SP1 Causes WebDev.WebServer.exe crash
Requesting Gravatar...
Alternatively, try deleting all files in this folder:

C:\Users\<your user>\AppData\Local\Microsoft\WebsiteCache
Left by Ralph on Dec 20, 2008 6:34 AM

# re: Visual Studio 2008 SP1 Causes WebDev.WebServer.exe crash
Requesting Gravatar...
same problem is occuring with me.
i deleted all files within websitecahe folder but still having problem.
Left by mehmood on Nov 21, 2009 3:20 PM

# re: Visual Studio 2008 SP1 Causes WebDev.WebServer.exe crash
Requesting Gravatar...
Thanks, Setting the port number to a specific port worked the 3rd time i changed it!
Left by Nathan Freeman-Smith on Jan 19, 2010 11:21 AM

# re: Visual Studio 2008 SP1 Causes WebDev.WebServer.exe crash
Requesting Gravatar...
thx bro, I clean the project, then it works
Left by Orange on Sep 06, 2010 9:12 AM

# re: Visual Studio 2008 SP1 Causes WebDev.WebServer.exe crash
Requesting Gravatar...
WebDev.Webserver.exe has stopped working ..

Please help me with this ... I 've tried all the methods posted here ..



Description:
Stopped working

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: webdev.webserver.exe
Problem Signature 02: 9.0.0.0
Problem Signature 03: 488f1aa2
Problem Signature 04: System
Problem Signature 05: 2.0.0.0
Problem Signature 06: 4a275e12
Problem Signature 07: 2ca6
Problem Signature 08: 40
Problem Signature 09: System.Net.Sockets.Socket
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1033
Left by Jewel Joy on Feb 09, 2012 10:51 PM

Your comment:
 (will show your gravatar)


Copyright © Wes Weeks | Powered by: GeeksWithBlogs.net