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
Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, 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.
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.
3 Posts
Failed to initialize the AppDomain
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
Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, 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.
9754 Posts
MVP
Re: Failed to initialize the AppDomain
Dec 19, 2008 01:01 PM|tomkmvp|LINK
What version of IIS?
http://mvp.support.microsoft.com/
3 Posts
Re: Failed to initialize the AppDomain
Dec 19, 2008 02:34 PM|MicroMetal|LINK
Microsoft-IIS/6.0
Also the .Net version is 2.0
3 Posts
Re: Failed to initialize the AppDomain
Dec 22, 2008 09:59 AM|MicroMetal|LINK
Fixed it.
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. http://support.microsoft.com/kb/317955
9754 Posts
MVP
Re: Failed to initialize the AppDomain
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).
http://mvp.support.microsoft.com/