IIS 7, .Net 4.0 Beta 2 and 503 Service Unavailable…after Beta 1
After recently installing Visual Studio 2010 Beta 2 and creating a .Net 4.0 site, I tried to step out of Cassini and into IIS only to get “503 Service Unavailable” and a killed worker process. Checking the event viewer I found the following errors.
The worker process failed to initialize correctly and therefore could not be started. The data is the error.
Followed by…
The worker process failed to pre-load .Net Runtime version v4.0.20506.
The Google was no help. It returned a handful of result that weren’t all that helpful, but one post was interesting. Someone had a similar problem with the 2.0 runtime when upgrading to the beta and found there were tiny bits of the other runtime sticking around.
I had .Net 4.0 Beta 1 installed before, so I did some digging and found I had the Beta framework:
C:\Windows\Microsoft.NET\Framework\v4.0.21006
C:\Windows\Microsoft.NET\Framework64\v4.0.21006
I also had folders from the Beta 1
C:\Windows\Microsoft.NET\Framework\v4.0.20506
C:\Windows\Microsoft.NET\Framework64\v4.0.20506
I deleted those folders, restarted the .Net 4.0 app pool’s and and hard restart just to be safe. Everything worked. Two hours on a Friday wasted, but we weekend free of worry.
Comments(9)
I am having the same issue right now, I had Beta 1, now I’m using Beta 2…
Did you just remove the two v4.0.20506 folders?
Restarting now.
@Lawrence Yes. That’s all I did and it stated working.
[...] Looks like mark @ fooberry.com had the same issue: [...]
Yep this worked for me,
ive installed beta 2 and VS2010 and im creating an MVC app,
spend ~4 hours trying to get this working
thanks
@jonathan That’s about how long it took me as well…the pains of bleeding edge.
Thanks! Your post probably saved me several hours
@Arni Glad to help.
Thanks- saved me a bunch of time.
thanks. Even though I hadn’t installed beta versions, I found a 0 byte file called V4.0.303 which was causing the same error.