Re: IIS locks DLLs after deploying web service (sometimes) UGH!!!
From: Nick Malik [Microsoft] (nickmalik_at_hotmail.nospam.com)
Date: 03/01/05
- Next message: Nick Malik [Microsoft]: "Re: windows application in startup"
- Previous message: Nick Malik [Microsoft]: "Re: How to embed images in html email"
- In reply to: Jim: "IIS locks DLLs after deploying web service (sometimes) UGH!!!"
- Messages sorted by: [ date ] [ thread ]
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. :)
>
>
- Next message: Nick Malik [Microsoft]: "Re: windows application in startup"
- Previous message: Nick Malik [Microsoft]: "Re: How to embed images in html email"
- In reply to: Jim: "IIS locks DLLs after deploying web service (sometimes) UGH!!!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|