
WSH scripting of MMC for Site Server Publishing
I don't think this can be done...
I've tried that before and the Application.Unload commands don't appear
to work correctly with ADSI. The calls succeed but the server doesn't
unload the virtual app.
FWIW, I don't think this would work reliably even if it did unload.
If your site's busy people would be coming in an re-loading the application
before your code would ever load the new DLL.
This shit is extremely difficult to implement with ASP...
I have some ISAPI applications that load COM objects and all of them
include a HotSwap interface that allow unloading components, updating
the binaries and type libraries and then reloading the components with
the ISAPI extension holding requests while the update is happening.
Unfortunately, ASP doesn't this kind of functionality which is a real
must for large scale Web apps that are busy enough to have problems
to go offline for more than a few seconds.
+++ Rick ---
--
Rick Strahl
West Wind Technologies
Paia, Hawaii
http://www.west-wind.com/
Making waves on the Web
with Visual FoxPro
Quote:
>Here's the situation:
>We have a development IIS server, test IIS server, and production IIS
>servers. We have Site Server Publishing set up to move ASP/HTML content
>from one server to another - ie. from dev to test.
>In the course of our development we have implemented a VB component (dll)
>that is loaded into memory with our web site in IIS. The IIS web site is
>running as an application in a seperate memory space.
>In order to replace the dll component with a new version, the web site must
>be stopped in the MMC and then you must go into the web site properties,
>select Home Directory, and click on "Unload". This unloads the dll from
>memory and so it can be replaced.
>We need a way to script this task so that it can be done automatically from
>Site Server Publishing projects.
>If anyone has done something like this using WSH (or other scripting
tools),
>please let me know via email.
>Thanks
>Roger Weeks