Access Denied following Assembly.Load

G

Guest

Hi All,

I have an ASP.Net 1.1 application which loads an Assembly using
Assembly.LoadFrom. This is an intranet application which uses impersonation.
When the app tries to load an assembly using LoadFrom my users are getting a
System.IO.FileLoadException: Access is denied, naming the dll which we are
trying to load.

If I run the application as a user who is a local adminisrator on the
Webserver the file loads and is reflected fine. Moreover once the file has
been loaded once any of the other users (who are not admins) can execute the
code fine.

I have checked and even amended the ACL on the folder which contains the
file to provide Full Control to Everybody, but this does not solve the
problem. The Assembly being loaded is located below the WebApp /Bin folder.
Although I have tested it located outside the app base folder which the same
results.

I am not getting any failiures in the Security Event Log on the web server,
nor do I get any failiures when watching the files with FileMon
(SysInternals), when the user gets the error.

Any ideas would be gratefully appreciated.

Thanks

Justin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top