"Unable to load file" error when executed under IUSR_ account

From: Rajasekar Shanmugam (s_rajasekar@yahoo.com)
Date: 12/31/02


From: "Rajasekar Shanmugam" <s_rajasekar@yahoo.com>
Date: Tue, 31 Dec 2002 10:13:31 +0530


Hi,

I am trying to implement resource helper library which updates resources
when a change is detected. This library is to be used from ASP pages and
other native apps.

The resources are loaded into a helper domain and when a change is detected,
this appdomain is recreated. Of course, shadow copying is enabled to avoid
locking the actual resource files.

The test program (console app) works fine. When the same component is used
from an ASP page (anonymous user is IUSR_ account), Assembly.LoadFrom( )
method throws the FileLoadException with the message show below.

--------------------------------------------------
Location of findres.dll: e:\temp\loc\res\FindRes.Dll
FileLoadException FileName:findres.dll
FileLoadException Log:=== Pre-bind state information ===
LOG: Where-ref bind. Location = e:/temp/loc/res/findres.dll
LOG: Appbase = C:\WINDOWS\System32\inetsrv\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).

LOG: Attempting download of new URL file:///e:/temp/loc/res/findres.dll.

FileLoadException msg:Unable to load file 'findres.dll'.
--------------------------------------------------

If the anonymous user account is changed to an account in power users group,
everything just works fine.

A search in the web did not help.
Any pointers to any information available on this would be great.

Thanks for your time.



Relevant Pages

  • Re: "Unable to load file" error when executed under IUSR_ account
    ... > locking the actual resource files. ... > from an ASP page (anonymous user is IUSR_ account), ... > method throws the FileLoadException with the message show below. ...
    (microsoft.public.dotnet.security)
  • Re: Google Pipe Smokers
    ... Thanks for your efforts and for alerting us of this additional resource. ... This new group may bring more pipe smokers into the online arena, ... As long as it does not become merely a duplication of ASP postings, ... Regarding the attempt to eliminate trolls via the new google group, well, ...
    (alt.smokers.pipes)
  • Re: Prevent file access directly from URL
    ... If you do not want the users to directly access the file via a URL, ... then restrict the accessibily of that resource by policy. ... I have an IIS 5.0 web site that contains a folder for PDF documents. ... I have an ASP page entitled OpenFile.asp that opens the file, ...
    (microsoft.public.inetserver.iis)
  • Re: Newbie question
    ... like ASP 3.0. ... > My computer is running W2000 prof and is named IT03; I installed dev ... The resource you are looking for (or one of its ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Newbie question
    ... like ASP 3.0. ... > My computer is running W2000 prof and is named IT03; I installed dev ... The resource you are looking for (or one of its ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)

Loading