Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automating the Unloading of a MTDLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
ActiveVFP
Divers
Thread ID:
00787868
Message ID:
00788173
Vues:
22
When I have a little more time I am going to test this process.

Thanks for you help.
Simon

>Shouldn't be a problem. Also keep in mind that, if you use use VFP scripting and put a lot of app logic in the HTML, then you really never need to 'Unload' - you just change the VFp script and it runs!
>But, for keeping the app logic in the .VFP. mtdll and swapping out mtdlls, the steps would be:
>1.) FTP or HTTP upload of new .VFP. mtdll(include .VBR and .tlb) to a temp directory on the web server.
>2.) Switch the default page for the web app virtual to be a temp static html page. This is where we'll temporarily make sure the web app is not reloaded by someone hitting the page again.
>3.) Unload Web app (using that code or manually thru IIS MMC) on the web server.
>4.) Copy the newly uploaded mtdll and associated files to the live directory overwriting the old ones.
>5.) Regsvr32 the new vfp mtdll.
>6.) reset the default page to your web app.
>7.) test by hitting the default page for your web app.
>That should be it!
>
>>This is something that I will need to learn more about because I have servers hundreds of miles away and the only access I have to them is via the Internet/FTP. So the ability to unload a MTDLL and update it over the Internet is a must have feature.
>>
>>Simon
>>
>>>Something like that only that code would probably be in a vfp .exe that you execute on the server but kick off remotely. That is, unless there's a better way to do this from the IIS MMC in a distributed environment - I haven't really looked into this...
>>>>Claude,
>>>>
>>>>If I understand you correctly I could issue some like the following in the VFP command Window:
>>>>
>>>>
>>>>DirObj=GetObject("IIS://www.somedomain.com/W3SVC/1/Root/myvirtual")
>>>>DirObj.AppUnload
>>>>
>>>>Then I could FTP a new MTDLL to the site and the next request would use the new DLL.
>>>>
>>>>
>>>>>Simon,
>>>>>all's that would have to be run remotely is the following:
>>>>>DirObj=GetObject("IIS://LocalHost/W3SVC/1/Root/"+JustStem(cOutputName))
>>>>>DirObj.AppUnload
>>>>>where 'JustStem(cOutputName)' is the name of the virtual directory.
>>>>>This is also what can be run from the project hook...
>>>>>>Hi Claude
>>>>>>
>>>>>>You mentioned on the Web-Connect messageboard that you unload MTDLLs all the time that were in the High (Isolated mode). I am assuming you use the unload button in the Management Console. Can you automated this process so that you could unload the MTDLL at a remote site and update it with a newer version?
>>>>>>
>>>>>>Simon
Simon White
dCipher Computing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform