Tuesday, December 18, 2007

App-Domain could not be created. Error: 0x80131902

Failed to execute request because the App-Domain could not be created. Error: 0x80131902
Event-ID: 1088
Source: ASP.NET 2.0.50727.0

I was getting this error in Event Viewer while trying to run a web app. This was fresh install of IIS, but on an older server. The problem is that after IIS is installed you need to re-install the .Net framework.

Step one is to un-install the .Net framework.
  • Open a Command Prompt
  • run "net stop w3svc"
  • cd %windir%\Microsoft.Net\Framework\v2.0.50727\
  • run "aspnet_regiis.exe -ua"
  • run "aspnet_regiis.exe -i "
  • run "net start w3svc"

aspnet_regiis.exe -r may have worked instead of the two step uninstall / reinstall based on it's discription but I didn't try that option.


Anonymous said...

Thank you thank you thank you thank you!!!

I've spent hours trying to figure out what I was doing wrong, when the answer was, nothing, MS is doing it wrong.

Anonymous said...

Thank you very much! I also spent many hours looking for solution/s. Thank you!

Anonymous said...

awesome! Worked like a dream for me.
Now to just get the database connection working...!

Anonymous said...

Bravo! Thank you very much for documenting your solution.

Nitin Gupta said...

U r mu IT hero man!!!!!!!
I spent days on this and got the real solution from u!!!!
Thank u Very much!!!!

MPDDK-mm4 said...

Brilliant. I've just installed IIS5.1 on my WinXP dev box and was having this problem. Thanks for posting the solution :-)

Anonymous said...

Thanks a million! Your post provided me a working solution. I was in deep trouble with coexisting .NET Framework v2.0 and v4.0 and I couldn't get either of them working. After implementing your solution I could run just the version I wanted and switch them according to my needs.

Anonymous said...

Tons & Tons of Thanks to u, I spent many hours on this issue , and got solved it only by u :)

Anoop said...

Awesome buddy.....Thanks alot.......