You not only have to shut down the package in MTS, you have to unload it from IIS. Here's some chat from a post I made a couple of weeks ago concerning IIS 5 that ships with Windows2000:
>Anyway, the cool part about this that you no longer have to sut down the web server at all. Now if I could just figure out a programmatic way to do what that button does...
>
>Mike
You can use IIS' ADSI provider to do this:
oVD = GETOBJECT("IIS://MYMACHINE/W3SVC/1/MyVirtualDir,IIsWebVirtualDir"
oVD.AppUnload()
Where MYMACHINE is the name of the machine the server resides on, 1 is the enumeration of the site in question (most only have 1), and MyVirtualDir is the name ofthe virtual directory.
For in-proc apps, this will only unload your object if there are no outstanding references. (Session vars)
Erik Moore
Microsoft MVP- Foxpro
Universal Thread Sysop, VFP Forum
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement