Freigeben über


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!

Comments

  • Anonymous
    June 25, 2007
    i use the neokernel web server because its all managed code and it has most of the features missing from webdev.weserver
  • Anonymous
    September 04, 2007
    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
  • Anonymous
    September 05, 2007
    Sorry, the only workarounds I know of are the ones I listed in the post above.
  • Anonymous
    September 26, 2007
    Found that changing the default port made it work instantly:http://blogs.msdn.com/bradleyb/
  • Anonymous
    May 12, 2008
    Try with fresh installation of Visual Studio 2005 with Service Pack 1, it really works some time.