Re: how to redeploy .net app without iisreset

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Andy Fish (ajfish_at_blueyonder.co.uk)
Date: 03/15/05


Date: Tue, 15 Mar 2005 15:07:18 -0000

OK, I did some more experiments using sysinternals process explorer.

Although it doesn't lock the DLLs, it seems to lock the parent directory
(I'm guessing that putting a filesystem watch on a directory locks the
parent directory).

This is why (as the previous reply pointed out) it's posible to simply copy
the new version over the old, even though it's not possible to delete or
rename the old one.

I found that if I edited the web.config file it would remove most of the
locks and then I could rename the web root directory.

In my case, the directory I wanted to rename was one level higher (I have a
structure like /myApp/web/bin where web is the web root). but I found that
after renaming the web directory and waiting a few seconds I could then
rename /myApp directory.

Andy

"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
news:Ocq59IWKFHA.1308@TK2MSFTNGP15.phx.gbl...
> Hi Andy,
>
> Like you, we found that we had to stop the Web site before uploading a new
> version. Although in *theory* it shouldn't be necessary, we ended up with
> locked DLLs.
>
> I wonder if there's a way to just change the Web.config of the site you're
> uploading? That would cause a reset of that application but not force a
> stop of the whole of IIS. You would need to make sure nobody hits the site
> after the web.config change and before the new files are copied -
> otherwise you'd have the same mess you have now.
>
> Yes, it is a PITA.
>
> Ken
> Microsoft MVP [ASP.NET]
>
> "Andy Fish" <ajfish@blueyonder.co.uk> wrote in message
> news:%23$84dgVKFHA.1620@TK2MSFTNGP14.phx.gbl...
>> Hi,
>>
>> when I want to upgrade my asp.net web app on the deployment server, my
>> process is basically this:
>>
>> 1. stop the web site in iis manager
>> 2. in explorer, rename the web root directory from, say, 'foo' to
>> 'foo.old'
>> 3. make a new directory called 'foo'
>> 4. install the new software
>> 5. apply any config changes
>> 6. restart the web site.
>>
>> Occasionally this process seems to work OK, but most of the time I cannot
>> perform step 2 without doing an iisreset to unload the DLLs - I get the
>> standard message about files being locked. This is rather a PITA because
>> there are several web sites on the same machine and I don't really want
>> to interrupt the others.
>>
>> Is there any more forceful way of stopping one web site such that the
>> asp.net DLLs get unloaded without resoriting to stopping the whole of
>> IIS?
>>
>> TIA
>>
>> Andy
>>
>>
>



Relevant Pages

  • Re: Hide text that I type when the following mail merge field is e
    ... Many keyboards - mine included - have an F Lock button which allows ... switching between F key function sets. ... Word MVP web site http://word.mvps.org ...
    (microsoft.public.word.docmanagement)
  • RE: how can you verify that the site you get is not a fake?
    ... > also understand that the lock function is a component of the browser... ... > provide a fake 'picture/icon' for the user to select, ... > Web Site Identity Verified ... a certificate authority you trust for this purpose. ...
    (Fedora)
  • Re: HEADS UP: UNIX domain socket locking changes merged to CVS HEAD
    ... mostly when starting-up gnome. ... It usually takes less than 5 to 10 minutes for the deadlock to happens. ... address continues to work--I can still access the web site from outside. ... of course I still could lock up.. ...
    (freebsd-current)
  • Re: how to redeploy .net app without iisreset
    ... As a result you could copy the current directory to an old one and install ... > Although it doesn't lock the DLLs, it seems to lock the parent directory>. ... > This is why it's posible to simply copy> the new version over the old, even though it's not possible to delete or> rename the old one. ... we found that we had to stop the Web site before uploading a new>> version. ...
    (microsoft.public.inetserver.iis)
  • Re: credit card security -no padlock
    ... >> get the information you provide to the web site. ... No lock means the communications ... >channel is insecure, and information transmitted ... only that the page you are looking at _was_ sent to you without encryption. ...
    (comp.security.misc)