>Yeah, I know about the 'Unload' button for isolated applications in a virtual directory (as per my first post to the originator of this thread). I went to the MSDN site and read-up on this but still couldn't get it to release the IIS app. I tried it on both IIS 4.0 and NTWS4.0 PWS but couldn't get it to work. Since I'm running DLL's and not EXE's on those virtual directories, they are running in the MTS. So, my I'm going to investigate shutting down the MTS package instead. Of course that doesn't necessarily help the EXE ones.
>
Ok, I've done some research (I guess, just cuz I like you), but I no longer have a NT 4 box with MTS to play around on (all my dev machines are Win2K now- In Windows 2000, there is no MTS, because transactions are built into COM+).
There are a set of MTS admin objects that you can automate to set up and administer packages, and wouldn't you know it, one of them allows you to ShutDown a package...
oCatalog = CreateObject("MTSAdmin.Catalog")
oPackages = oCatalog.GetCollection("Packages")
oUTil = oPackages.GetUtilInterface()
oUTil.ShutDownPackage(cPackageID)
cPackageID is obtained from the id property of one of the packages in your oPackages collection. It also has a name property that will allow you to identify which package is yours.
I got all this from October MSDN...
Erik Moore
Clientelligence