how do i fix this error in asp 2.0

how do i fix this error in asp 2.0

am 22.07.2005 04:27:01 von TdarTdar

Failed to execute request because the App-Domain could not be created. Error:
0x80070005 Access is denied.


Failed to initialize the AppDomain:/LM/W3SVC/5/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.
StackTrace: at System.AppDomain.CreateInstance(String assemblyName,
String typeName)
at
System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironment(String
appId, IApplicationHost appHost, HostingEnvironmentParameters
hostingParameters)
at
System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironmentAndReportErrors(String
appId, IApplicationHost appHost, HostingEnvironmentParameters
hostingParameters)

thanks

Re: how do i fix this error in asp 2.0

am 22.07.2005 12:35:28 von Teemu Keiski

Hi,

check that ASPNET user has read/write permissions to folder (and subfolders)
on %SYSTEM%/Microsoft.NET. In this case of course the interesting one is
v2.xxx folder

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"TdarTdar" wrote in message
news:FC350FF3-7F40-48E8-8837-7E39170405F4@microsoft.com...
> Failed to execute request because the App-Domain could not be created.
> Error:
> 0x80070005 Access is denied.
>
>
> Failed to initialize the AppDomain:/LM/W3SVC/5/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.
> StackTrace: at System.AppDomain.CreateInstance(String assemblyName,
> String typeName)
> at
> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironment(String
> appId, IApplicationHost appHost, HostingEnvironmentParameters
> hostingParameters)
> at
> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironmentAndReportErrors(String
> appId, IApplicationHost appHost, HostingEnvironmentParameters
> hostingParameters)
>
> thanks

Re: how do i fix this error in asp 2.0

am 16.08.2005 02:35:55 von BL

i've got the same problem. Windows 2003 x64, dotnet 64 (netfx64.exe v.
2.0.50215.45 from public download). i checked the %SYSTEM%\Microsoft.Net
folders, and added the aspnet user with full control to the entire tree.
didn't help.

any further suggestions? TIA

--
brian

"Teemu Keiski" wrote in message
news:%23wT1PkqjFHA.3144@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> check that ASPNET user has read/write permissions to folder (and
> subfolders) on %SYSTEM%/Microsoft.NET. In this case of course the
> interesting one is v2.xxx folder
>
> --
> Teemu Keiski
> ASP.NET MVP, AspInsider
> Finland, EU
> http://blogs.aspadvice.com/joteke
>
> "TdarTdar" wrote in message
> news:FC350FF3-7F40-48E8-8837-7E39170405F4@microsoft.com...
>> Failed to execute request because the App-Domain could not be created.
>> Error:
>> 0x80070005 Access is denied.
>>
>>
>> Failed to initialize the AppDomain:/LM/W3SVC/5/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.
>> StackTrace: at System.AppDomain.CreateInstance(String assemblyName,
>> String typeName)
>> at
>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironment(String
>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>> hostingParameters)
>> at
>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironmentAndReportErrors(String
>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>> hostingParameters)
>>
>> thanks
>
>

Re: how do i fix this error in asp 2.0

am 16.08.2005 13:38:46 von nomailreplies

Check your current permissions against this article which spells
out the permissions needed for all essential ASP.NET directories:

http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/secmod/html/secmod15.asp

See Table 1: Required NTFS permissions.



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"R. Brian Lindahl" wrote in message
news:eWlROqfoFHA.3036@TK2MSFTNGP14.phx.gbl...
> i've got the same problem. Windows 2003 x64, dotnet 64 (netfx64.exe v. 2.0.50215.45 from
> public download). i checked the %SYSTEM%\Microsoft.Net folders, and added the aspnet
> user with full control to the entire tree. didn't help.
>
> any further suggestions? TIA
>
> --
> brian
>
> "Teemu Keiski" wrote in message
> news:%23wT1PkqjFHA.3144@TK2MSFTNGP12.phx.gbl...
>> Hi,
>>
>> check that ASPNET user has read/write permissions to folder (and subfolders) on
>> %SYSTEM%/Microsoft.NET. In this case of course the interesting one is v2.xxx folder
>>
>> --
>> Teemu Keiski
>> ASP.NET MVP, AspInsider
>> Finland, EU
>> http://blogs.aspadvice.com/joteke
>>
>> "TdarTdar" wrote in message
>> news:FC350FF3-7F40-48E8-8837-7E39170405F4@microsoft.com...
>>> Failed to execute request because the App-Domain could not be created. Error:
>>> 0x80070005 Access is denied.
>>>
>>>
>>> Failed to initialize the AppDomain:/LM/W3SVC/5/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.
>>> StackTrace: at System.AppDomain.CreateInstance(String assemblyName,
>>> String typeName)
>>> at
>>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironment(String
>>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>>> hostingParameters)
>>> at
>>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironmentAndReportErrors(String
>>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>>> hostingParameters)
>>>
>>> thanks
>>
>>
>
>

Re: how do i fix this error in asp 2.0

am 16.08.2005 16:53:39 von BL

Didn't help. :(

anything else I can try? i'm about at the point of starting over with a
fresh install (not that this one is that old - only installed win2003 a week
ago).

--
brian
"Juan T. Llibre" wrote in message
news:%23wJhbcloFHA.3036@TK2MSFTNGP14.phx.gbl...
> Check your current permissions against this article which spells
> out the permissions needed for all essential ASP.NET directories:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/secmod/html/secmod15.asp
>
> See Table 1: Required NTFS permissions.
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Español
> Ven, y hablemos de ASP.NET...
> ======================
>
> "R. Brian Lindahl" wrote in message
> news:eWlROqfoFHA.3036@TK2MSFTNGP14.phx.gbl...
>> i've got the same problem. Windows 2003 x64, dotnet 64 (netfx64.exe v.
>> 2.0.50215.45 from public download). i checked the %SYSTEM%\Microsoft.Net
>> folders, and added the aspnet user with full control to the entire tree.
>> didn't help.
>>
>> any further suggestions? TIA
>>
>> --
>> brian
>>
>> "Teemu Keiski" wrote in message
>> news:%23wT1PkqjFHA.3144@TK2MSFTNGP12.phx.gbl...
>>> Hi,
>>>
>>> check that ASPNET user has read/write permissions to folder (and
>>> subfolders) on %SYSTEM%/Microsoft.NET. In this case of course the
>>> interesting one is v2.xxx folder
>>>
>>> --
>>> Teemu Keiski
>>> ASP.NET MVP, AspInsider
>>> Finland, EU
>>> http://blogs.aspadvice.com/joteke
>>>
>>> "TdarTdar" wrote in message
>>> news:FC350FF3-7F40-48E8-8837-7E39170405F4@microsoft.com...
>>>> Failed to execute request because the App-Domain could not be created.
>>>> Error:
>>>> 0x80070005 Access is denied.
>>>>
>>>>
>>>> Failed to initialize the AppDomain:/LM/W3SVC/5/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.
>>>> StackTrace: at System.AppDomain.CreateInstance(String assemblyName,
>>>> String typeName)
>>>> at
>>>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironment(String
>>>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>>>> hostingParameters)
>>>> at
>>>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironmentAndReportErrors(String
>>>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>>>> hostingParameters)
>>>>
>>>> thanks
>>>
>>>
>>
>>
>
>

Re: how do i fix this error in asp 2.0

am 16.08.2005 18:04:14 von nomailreplies

re:
> Didn't help. :(

*All* the recommended permissions for the account which
your ASP.NET install is using are set correctly ?

Did you follow the special instructions for the GAC ?
Did you use the correct ASP.NET version number ?

( The examples use ASP.NET 1.0 version's directory,
but your *current* version's directory must be used. )



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"R. Brian Lindahl" wrote in message
news:uATgrJnoFHA.2152@TK2MSFTNGP14.phx.gbl...
> Didn't help. :(
>
> anything else I can try? i'm about at the point of starting over with a fresh install
> (not that this one is that old - only installed win2003 a week ago).
>
> --
> brian

> "Juan T. Llibre" wrote in message
> news:%23wJhbcloFHA.3036@TK2MSFTNGP14.phx.gbl...
>> Check your current permissions against this article which spells
>> out the permissions needed for all essential ASP.NET directories:
>>
>> http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/secmod/html/secmod15.asp
>>
>> See Table 1: Required NTFS permissions.
>>
>>
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> http://asp.net.do/foros/
>> Foros de ASP.NET en Español
>> Ven, y hablemos de ASP.NET...
>> ======================
>>
>> "R. Brian Lindahl" wrote in message
>> news:eWlROqfoFHA.3036@TK2MSFTNGP14.phx.gbl...
>>> i've got the same problem. Windows 2003 x64, dotnet 64 (netfx64.exe v. 2.0.50215.45
>>> from public download). i checked the %SYSTEM%\Microsoft.Net folders, and added the
>>> aspnet user with full control to the entire tree. didn't help.
>>>
>>> any further suggestions? TIA
>>>
>>> --
>>> brian
>>>
>>> "Teemu Keiski" wrote in message
>>> news:%23wT1PkqjFHA.3144@TK2MSFTNGP12.phx.gbl...
>>>> Hi,
>>>>
>>>> check that ASPNET user has read/write permissions to folder (and subfolders) on
>>>> %SYSTEM%/Microsoft.NET. In this case of course the interesting one is v2.xxx folder
>>>>
>>>> --
>>>> Teemu Keiski
>>>> ASP.NET MVP, AspInsider
>>>> Finland, EU
>>>> http://blogs.aspadvice.com/joteke
>>>>
>>>> "TdarTdar" wrote in message
>>>> news:FC350FF3-7F40-48E8-8837-7E39170405F4@microsoft.com...
>>>>> Failed to execute request because the App-Domain could not be created. Error:
>>>>> 0x80070005 Access is denied.
>>>>>
>>>>>
>>>>> Failed to initialize the AppDomain:/LM/W3SVC/5/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.
>>>>> StackTrace: at System.AppDomain.CreateInstance(String assemblyName,
>>>>> String typeName)
>>>>> at
>>>>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironment(String
>>>>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>>>>> hostingParameters)
>>>>> at
>>>>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironmentAndReportErrors(String
>>>>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>>>>> hostingParameters)
>>>>>
>>>>> thanks
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Re: how do i fix this error in asp 2.0

am 16.08.2005 18:17:30 von BL

i don't have any special settings for the asp.net account - i checked
settings for the auto-generated ASPNET account.

> *All* the recommended permissions for the account which
> your ASP.NET install is using are set correctly ?

yes

> Did you follow the special instructions for the GAC ?

yes. i turned off shfusion.dll and set the properties via explorer.

> Did you use the correct ASP.NET version number ?
> ( The examples use ASP.NET 1.0 version's directory,
> but your *current* version's directory must be used. )

i made sure all 3 versions have the right settings (1.1, 2.0 (64), and 2.0
(32))

this was a fresh 2003 enterprise x64 install a week ago. i've installed sql
server 2000 (x86) and turned on the app server, file server, and streaming
media server roles, as well as installing the FTP service. the only 3rd
party stuff installed is winrar and argosoft mail server.

this same machine was working fine a couple of weeks ago. i had to remove a
secondary hard disk, which messed up the PDC role i had installed in that
instance, so i reinstalled from scratch. the only difference i can think of
is that before, I had installed .net 2.0 as part of installing sql server
2005 june ctp instead of doing it by itself this time. we decided not to use
sql 2005 at this time.

--
brian

>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Español
> Ven, y hablemos de ASP.NET...
> ======================
>
> "R. Brian Lindahl" wrote in message
> news:uATgrJnoFHA.2152@TK2MSFTNGP14.phx.gbl...
>> Didn't help. :(
>>
>> anything else I can try? i'm about at the point of starting over with a
>> fresh install (not that this one is that old - only installed win2003 a
>> week ago).
>>
>> --
>> brian
>
>> "Juan T. Llibre" wrote in message
>> news:%23wJhbcloFHA.3036@TK2MSFTNGP14.phx.gbl...
>>> Check your current permissions against this article which spells
>>> out the permissions needed for all essential ASP.NET directories:
>>>
>>> http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/secmod/html/secmod15.asp
>>>
>>> See Table 1: Required NTFS permissions.
>>>
>>>
>>>
>>> Juan T. Llibre
>>> ASP.NET MVP
>>> http://asp.net.do/foros/
>>> Foros de ASP.NET en Español
>>> Ven, y hablemos de ASP.NET...
>>> ======================
>>>
>>> "R. Brian Lindahl" wrote in message
>>> news:eWlROqfoFHA.3036@TK2MSFTNGP14.phx.gbl...
>>>> i've got the same problem. Windows 2003 x64, dotnet 64 (netfx64.exe v.
>>>> 2.0.50215.45 from public download). i checked the
>>>> %SYSTEM%\Microsoft.Net folders, and added the aspnet user with full
>>>> control to the entire tree. didn't help.
>>>>
>>>> any further suggestions? TIA
>>>>
>>>> --
>>>> brian
>>>>
>>>> "Teemu Keiski" wrote in message
>>>> news:%23wT1PkqjFHA.3144@TK2MSFTNGP12.phx.gbl...
>>>>> Hi,
>>>>>
>>>>> check that ASPNET user has read/write permissions to folder (and
>>>>> subfolders) on %SYSTEM%/Microsoft.NET. In this case of course the
>>>>> interesting one is v2.xxx folder
>>>>>
>>>>> --
>>>>> Teemu Keiski
>>>>> ASP.NET MVP, AspInsider
>>>>> Finland, EU
>>>>> http://blogs.aspadvice.com/joteke
>>>>>
>>>>> "TdarTdar" wrote in message
>>>>> news:FC350FF3-7F40-48E8-8837-7E39170405F4@microsoft.com...
>>>>>> Failed to execute request because the App-Domain could not be
>>>>>> created. Error:
>>>>>> 0x80070005 Access is denied.
>>>>>>
>>>>>>
>>>>>> Failed to initialize the AppDomain:/LM/W3SVC/5/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.
>>>>>> StackTrace: at System.AppDomain.CreateInstance(String
>>>>>> assemblyName,
>>>>>> String typeName)
>>>>>> at
>>>>>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironment(String
>>>>>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>>>>>> hostingParameters)
>>>>>> at
>>>>>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironmentAndReportErrors(String
>>>>>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>>>>>> hostingParameters)
>>>>>>
>>>>>> thanks
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

RE: how do i fix this error in asp 2.0

am 19.03.2007 10:37:03 von dclaassen

Has same issue... adding the Network Service account with read/write rights
to the website root folder fixed it for me

"TdarTdar" wrote:

> Failed to execute request because the App-Domain could not be created. Error:
> 0x80070005 Access is denied.
>
>
> Failed to initialize the AppDomain:/LM/W3SVC/5/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.
> StackTrace: at System.AppDomain.CreateInstance(String assemblyName,
> String typeName)
> at
> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironment(String
> appId, IApplicationHost appHost, HostingEnvironmentParameters
> hostingParameters)
> at
> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvironmentAndReportErrors(String
> appId, IApplicationHost appHost, HostingEnvironmentParameters
> hostingParameters)
>
> thanks

RE: how do i fix this error in asp 2.0

am 19.03.2007 15:10:15 von Hans Kesting

> Has same issue... adding the Network Service account with read/write
> rights to the website root folder fixed it for me
>

*write* access to the complete site seems a bit much. Just a *read* should
be
enough (and is needed).
Only if you really are writing files (logfiles, uploaded documents, ..),
*then* you
can (and must) add write-rights, but only to the directories you will write
to.

Hans Kesting


> "TdarTdar" wrote:
>
>> Failed to execute request because the App-Domain could not be
>> created. Error: 0x80070005 Access is denied.
>>
>> Failed to initialize the AppDomain:/LM/W3SVC/5/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.
>> StackTrace: at System.AppDomain.CreateInstance(String
>> assemblyName,
>> String typeName)
>> at
>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvir
>> onment(String
>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>> hostingParameters)
>> at
>> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvir
>> onmentAndReportErrors(String
>> appId, IApplicationHost appHost, HostingEnvironmentParameters
>> hostingParameters)
>> thanks
>>

RE: how do i fix this error in asp 2.0

am 19.03.2007 15:22:08 von dclaassen

Ok, removed the write access and it still works

"Hans Kesting" wrote:

> > Has same issue... adding the Network Service account with read/write
> > rights to the website root folder fixed it for me
> >
>
> *write* access to the complete site seems a bit much. Just a *read* should
> be
> enough (and is needed).
> Only if you really are writing files (logfiles, uploaded documents, ..),
> *then* you
> can (and must) add write-rights, but only to the directories you will write
> to.
>
> Hans Kesting
>
>
> > "TdarTdar" wrote:
> >
> >> Failed to execute request because the App-Domain could not be
> >> created. Error: 0x80070005 Access is denied.
> >>
> >> Failed to initialize the AppDomain:/LM/W3SVC/5/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.
> >> StackTrace: at System.AppDomain.CreateInstance(String
> >> assemblyName,
> >> String typeName)
> >> at
> >> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvir
> >> onment(String
> >> appId, IApplicationHost appHost, HostingEnvironmentParameters
> >> hostingParameters)
> >> at
> >> System.Web.Hosting.ApplicationManager.CreateAppDomainWithHos tingEnvir
> >> onmentAndReportErrors(String
> >> appId, IApplicationHost appHost, HostingEnvironmentParameters
> >> hostingParameters)
> >> thanks
> >>
>
>
>