G
Guest
Hi
I am running a site built on asp.net 1.1 on a windows server 2003 (which is
running asp.net 2.0 - shared hosting at my webhost). The site is low traffic
and very simple (mostly static text apart from a couple of usercontrols that
pull info from a sql db).
The problem I'm getting is that it will run fine for a few days, then
suddenly the following error will occur:
--------------------------------------------------
Could not load file or assembly 'Foo, Version=1.0.2388.18427,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is
denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or
assembly 'Foo, Version=1.0.2388.18427, Culture=neutral, PublicKeyToken=null'
or one of its dependencies. Access is denied.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Foo, Version=1.0.2388.18427, Culture=neutral,
PublicKeyToken=null' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileLoadException: Could not load file or assembly 'Foo,
Version=1.0.2388.18427, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. Access is denied.]
FooWebsite.FooPage.Page_Load(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
--------------------------------------------------
I have read various posts on this and other similar issues and the only
resolution seems to be to re-upload one of the DLLs the site uses to its bin
directory. Doing this seems to reset the site and all works fine again.
Obviously this is far from ideal!
From what I've been reading this issue is something to do with permissions
on the Temporary asp.net files folder.
The other annoyance is that this error does not get trapped by my custom
error hander page (as specified in web.config), so I do not receive the
automatic notification I've set up in that page.
Further configuration info:
- I am not using impersonation
- Deployment model is precompiled (isn't that the only option in 1.1?)
- No web farm, single server
- Load Balancing enabled
Any ideas?
thanks
Richard Bysouth
I am running a site built on asp.net 1.1 on a windows server 2003 (which is
running asp.net 2.0 - shared hosting at my webhost). The site is low traffic
and very simple (mostly static text apart from a couple of usercontrols that
pull info from a sql db).
The problem I'm getting is that it will run fine for a few days, then
suddenly the following error will occur:
--------------------------------------------------
Could not load file or assembly 'Foo, Version=1.0.2388.18427,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is
denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or
assembly 'Foo, Version=1.0.2388.18427, Culture=neutral, PublicKeyToken=null'
or one of its dependencies. Access is denied.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Foo, Version=1.0.2388.18427, Culture=neutral,
PublicKeyToken=null' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileLoadException: Could not load file or assembly 'Foo,
Version=1.0.2388.18427, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. Access is denied.]
FooWebsite.FooPage.Page_Load(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
--------------------------------------------------
I have read various posts on this and other similar issues and the only
resolution seems to be to re-upload one of the DLLs the site uses to its bin
directory. Doing this seems to reset the site and all works fine again.
Obviously this is far from ideal!
From what I've been reading this issue is something to do with permissions
on the Temporary asp.net files folder.
The other annoyance is that this error does not get trapped by my custom
error hander page (as specified in web.config), so I do not receive the
automatic notification I've set up in that page.
Further configuration info:
- I am not using impersonation
- Deployment model is precompiled (isn't that the only option in 1.1?)
- No web farm, single server
- Load Balancing enabled
Any ideas?
thanks
Richard Bysouth