Assembly.LoadFile() causes file locking

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have a web service running in IIS that uses Assembly.LoadFile() to
load a specific DLL, depending on who is making the web service
request. This works fine except that IIS places a lock on the DLL,
preventing me from updating it without bouncing the web server
process, which negatively affects other sites on the server.

I'd like to be able to update these DLLs without having to restart
IIS.

Is there a way to load an assembly at runtime without locking it, or
can I release the lock somehow? Is there a way to use the GAC for
this purpose?

Thanks in advance!
.



Relevant Pages

  • IIS locks DLLs after deploying web service (sometimes) UGH!!!
    ... basis, and when it does, it causes real problems, especially when it happens ... IIS, ... DLL somewhere, preventing the web service from running again until you bounce ...
    (microsoft.public.dotnet.general)
  • Re: Assembly.LoadFile() causes file locking
    ... load a specific DLL, depending on who is making the web service ...  This works fine except that IIS places a lock on the DLL, ... climb with every call to the web service. ...
    (microsoft.public.dotnet.framework)
  • IIS-bug - CGI-applikation terminates when loading standard DLL
    ... DLL files sometimes fails at load time of the CGI application. ... it fails when loaded by IIS and the OS. ...
    (microsoft.public.inetserver.iis)
  • Re: Installing IIS
    ... I can now see index.html from this web server! ... My own 2003 IIS server does not have any reference to that DLL. ... "Could not load all ISAPI filters for site/service. ...
    (microsoft.public.inetserver.iis)
  • Reflection in a Web Service?
    ... // Dynamically load the DLL ... However, from a web service project, I can't seem to get this to work. ... Is there a special way that IIS needs set up to allow this? ...
    (microsoft.public.dotnet.general)