IIS 5 & IIS 6
Failed to initialize the AppDomain
Last post Dec 23, 2008 02:13 PM by tomkmvp
Dec 19, 2008 09:12 AM|MicroMetal|LINK
I am trying to convert a .net 1.x website to 2.0. I changed the app pool (identity is network service) for the website, set it to 2.0, and gave computername\ASPNET (Read, Read and Execute, list contents) permissions to the websites folder. I also did an
IIS reset. I also tried giving "computername\IWAM_computername" the same permissions and full control.
Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied.
Failed to initialize the AppDomain:/LM/W3SVC/1047979552/Root
Message: Could not load file or assembly 'System.Web, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.
I have tried everything mentioned in this post
http://forums.asp.net/t/960370.aspx?PageIndex=2 except for running aspnet_regiis -ga, I didn't try this because I have websites on the server already that are running asp.net 2.0.
Curiously I don't think the site is looking at the correct web.config. The web.config thats in the applications directory has custom errors off, however the error page that comes up when custom errors is on is showing up.
So far ive tried
Giving permissions to IIS_WPG, machinename\ASPNET, machinename\IUSR_machinename, and machinename\IWAM_machinename.
I also tried to create a new virtual directory and set it as its own application instead of trying to convert the website to 2.0.
Dec 19, 2008 01:01 PM|tomkmvp|LINK
What version of IIS?
Dec 19, 2008 02:34 PM|MicroMetal|LINK
Also the .Net version is 2.0
Dec 22, 2008 09:59 AM|MicroMetal|LINK
I needed to go through the entire file path and make sure ASPNET and NETWORK SERVICE had read/read and execute/list folder contents on each of the folders and the root drive.
Method 2 and 3 in this KB fixed it.
Dec 23, 2008 02:13 PM|tomkmvp|LINK
Good job! FWIW, ASPNET is only relevant for IIS 5 (the article does not make this clear).