Re: IIS locks DLLs after deploying web service (sometimes) UGH!!!

From: Nick Malik [Microsoft] (nickmalik_at_hotmail.nospam.com)
Date: 03/01/05


Date: Mon, 28 Feb 2005 22:10:30 -0800

I haven't heard of this one. However, in general, if you have Windows 2003
running IIS6, you can usually just cycle the application pool that your web
service is running under to get it to release all resources. No need to
restart IIS.

HTH,

-- 
--- Nick Malik [Microsoft]
    MCSD, CFPS, Certified Scrummaster
    http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not 
representative of my employer.
   I do not answer questions on behalf of my employer.  I'm just a 
programmer helping programmers.
--
"Jim" <Jim@discussions.microsoft.com> wrote in message 
news:9CA93B17-0F59-495A-A6AA-0FBF61BD004E@microsoft.com...
> This does not happen ALL the time, but it does happen on a fairly regular
> basis, and when it does, it causes real problems, especially when it 
> happens
> (like it right now) in the PRODUCTION environment....  If anyone can tell 
> me
> how to prevent this, and moreover, how to FIX it, without having to bounce
> IIS, I would REALLY appreciate it!! :)
>
> Problem:  This occurs on IIS under Windows 2000 Advanced Server and 2003 
> as
> well.  Sometimes, when I update the web.config file of my web services (to
> change a remoting entry value, or some other key, for example) IIS locks a
> DLL somewhere, preventing the web service from running again until you 
> bounce
> IIS.  Note that this does not "always" happen, and I cannot seem to 
> determine
> the steps necessary to duplicate it.  Only that once IIS decides to lock 
> on
> to a DLL, it never lets go of it.  When you try to do a WSDL on the web
> service, you get an error ".....cannot access the file xxxxx because it is
> being used by another process."  The specific file depends on the web 
> service
> that I'm having hte issue with, but it always blows up in the same place--  
> a
> line in the "machine.config" file for IIS where it says assembly="*".
>
> The file that is stuck is generally not one of the DLL's specific to my 
> web
> service, but is oftne one of our other middle-tier DLL's, but sometimes it
> appears to be a .NET DLL (part of the .NET framework or something, 
> perhaps?)
> The point of course being, that it "should not do that"... but 
> nonetheless,
> it does.
>
> How can I get Windows to let go of the DLL when it does this without 
> having
> to bounce IIS in our production environment?  How can I prevent this from
> happening in the first place?  Any thoughts?  Thanks. :)
>
> 


Relevant Pages

  • Re: been hit by hacker, servudaemon installed
    ... security patching on iis 4.0 ... security fixes into the new version. ... >install all service packs and patches from Microsoft, ... >>>Windows, Apache, you name it. ...
    (microsoft.public.inetserver.iis.security)
  • Re: been hit by hacker, servudaemon installed
    ... security patching on iis 4.0 ... security fixes into the new version. ... :>install all service packs and patches from Microsoft, ... :>>>Windows, Apache, you name it. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Mac Server Hacked In Less Than 6 Hours
    ... Windows has RAS, and for it is built in since NT 3.1 ... | A typical IIS box and this Mac are not the same thing so the comparison ... IIS has been subject to quite a few bugs and so have ... Security isn't a proprietary attribute. ...
    (sci.crypt)
  • Re: File sharing, major security issue
    ... > windows file sharing for hours with no luck. ... > seem to be set by IIS though, ... don't have a firewall, you need one. ... your logs to know which ISP to complain to. ...
    (microsoft.public.inetserver.iis.security)
  • DllImport on framework 1.1, in IIS 6 (Windows Vista)
    ... I have an aspnet 1.1 application that works perfectly on Windows XP, ... When trying on Windows Vista (set application for aspnet 1.1 on IIS), the application crashes Internet Explorer with the message: ... I found that the errors is caused when accessing a method from an external dll. ...
    (microsoft.public.dotnet.framework.aspnet.security)