Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Access Denied Creating VFP COM DLL
Message
From
16/12/1999 19:35:40
 
 
To
16/12/1999 16:28:52
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00303089
Message ID:
00305009
Views:
41
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform