Welcome to MSDN Blogs Sign in | Join | Help

WebDev.WebServer.exe does not start - Configuration system failed to initialize

I have Visual Studio 2005 with Service Pack 1 installed and I cannot debug any web service or web application. This worked for a while and then it stopped working. I researched this on a couple of sites and the suggested solutions were

- Debug with F5
- Run with CTRL + F5 
- copy WebDev.WebServer.exe from another machine if not present in .Net Framework folder
- From .Net Framework folder run WebDev.WebServer.exe /PORT:8081 /PATH:"path to web app"
- disable or open firewall port

I tried all of these and it still failed with several errors
Configuration system failed to initialize
Unable to launch Visual Studio's Localhost Web Server.
 ASP.NET Development Server failed to start listening on port 8081.
 Error message:
 Configuration system failed to initialize

In my case, this error was caused by system.net\machineKey element in machine.config. Removing this element fixed the problem. Of course on a production system you don't want to this but you would not run WebDev.WebServer.exe either so that's not actually a problem.
I hope this helps other people facing the same problem!

Published Wednesday, March 28, 2007 5:56 PM by Adrian Hamza
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Monday, June 25, 2007 2:25 PM by Isaac

# re: WebDev.WebServer.exe does not start - Configuration system failed to initialize

i use the neokernel web server because its all managed code and it has most of the features missing from webdev.weserver

Tuesday, September 04, 2007 12:51 PM by tuntun

# re: WebDev.WebServer.exe does not start - Configuration system failed to initialize

I am getting following error mesage whenever I try to open web application (converted from VS 2003 to VS 2005).

Unable to start debugging on the web server. Configuration system failed to initialize

Wednesday, September 05, 2007 7:25 PM by Adrian Hamza

# re: WebDev.WebServer.exe does not start - Configuration system failed to initialize

Sorry, the only workarounds I know of are the ones I listed in the post above.

Wednesday, September 26, 2007 11:45 AM by DiverJoe

# re: WebDev.WebServer.exe does not start - Configuration system failed to initialize

Found that changing the default port made it work instantly:

http://blogs.msdn.com/bradleyb/

Monday, May 12, 2008 6:21 PM by Mark23

# re: WebDev.WebServer.exe does not start - Configuration system failed to initialize

Try with fresh installation of Visual Studio 2005 with Service Pack 1, it really works some time.

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker