Sharing Violation with xcopy -after adsutil.vbs APPUNLOAD & iis st
From: gj (gj_at_discussions.microsoft.com)
Date: 01/19/05
- Next message: adams.dave_at_gmail.com: "IIS Integrated Security Problems"
- Previous message: Kristofer Gafvert: "Re: IIS 5.1 stopped working after hotfixes Alert?"
- Next in thread: Graham Stevenson: "RE: Sharing Violation with xcopy -after adsutil.vbs APPUNLOAD & iis st"
- Reply: Graham Stevenson: "RE: Sharing Violation with xcopy -after adsutil.vbs APPUNLOAD & iis st"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 Jan 2005 08:21:05 -0800
IIS6.0 (noticed a similar post in IIS4.0 with no solution posted - thought
I'd try my luck...)
I'm working on a deployment issue for IIS. We are trying to copy in new
files to the web server and keep getting sharing violation. Here's the odd
thing. if we do:
xcopy filename1.dll destdir
xcopy filename2.dll destdir
we don't get the sharing violation but if we do
xcopy *.dll destdir
we always get the sharing violation. Any suggestions besides creating a row
for each dll being copied? Some builds have 50+ dll's. We can modify the
build script to do this but it'd take some time. Checking for a better
solution...
Actual script follows (this version gets the sharing violation):
CScript c:\inetpub\adminscripts\adsutil.vbs STOP_SERVER w3svc/1/
CScript c:\inetpub\adminscripts\adsutil.vbs APPUNLOAD w3svc/1/ROOT/bin
iisreset /stop
xcopy E:\upload\latest\bin\*.dll e:\inetpub\wwwroot\fin\bin2 /E /R /Y
rem xcopy E:\upload\latest\bin\VolumeRpt.dll e:\inetpub\wwwroot\fin\bin2
/E /R /Y
xcopy E:\upload\latest\bin\MTS e:\inetpub\wwwroot\fin\bin2\ /E /R /Y
iisreset /start
CScript c:\inetpub\adminscripts\adsutil.vbs START_SERVER w3svc/1/
--------------------------
output from the script
--------------------------
E:\upload\LATEST>CScript c:\inetpub\adminscripts\adsutil.vbs STOP_SERVER
w3svc/1/
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Server w3svc/1 Successfully STOPPED
E:\upload\LATEST>CScript c:\inetpub\adminscripts\adsutil.vbs APPUNLOAD
w3svc/1/ROOT/bin
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Application Unloaded.
E:\upload\LATEST>iisreset /stop
Attempting stop...
Internet services successfully stopped
E:\upload\LATEST>xcopy E:\upload\latest\bin\*.dll
e:\inetpub\wwwroot\fin\bin2 /E /R /Y
E:\upload\latest\bin\EmployeeCF.dll
E:\upload\latest\bin\VolumeRpt.dll
E:\upload\latest\bin\MTS\FINCtrlFiles.dll
E:\upload\LATEST>rem xcopy E:\upload\latest\bin\VolumeRpt.dll
e:\inetpub\wwwroot\fin\bin2 /E /R /Y
E:\upload\LATEST>xcopy E:\upload\latest\bin\MTS e:\inetpub\wwwroot\fin\bin2\
/E /R /Y
E:\upload\latest\bin\MTS\FINCtrlFiles.dll
1 File(s) copied
E:\upload\LATEST>iisreset /start
Attempting start...
Internet services successfully started
E:\upload\LATEST>CScript c:\inetpub\adminscripts\adsutil.vbs START_SERVER
w3svc/1/
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Server w3svc/1 Successfully STARTED
- Next message: adams.dave_at_gmail.com: "IIS Integrated Security Problems"
- Previous message: Kristofer Gafvert: "Re: IIS 5.1 stopped working after hotfixes Alert?"
- Next in thread: Graham Stevenson: "RE: Sharing Violation with xcopy -after adsutil.vbs APPUNLOAD & iis st"
- Reply: Graham Stevenson: "RE: Sharing Violation with xcopy -after adsutil.vbs APPUNLOAD & iis st"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|