Hi Derek,
A better way for VFP/COM/Web development:
Place the COM component in a COM+ Application environment. This way you can
control what credentials are used to run the COMponent without setting that
credentials on the website.
Then in your build program:

*- Shutdown COM+ app
lcAppName = "MyCom+ApplicationName"
objCatalog = CREATEOBJECT("COMAdmin.COMAdminCatalog")
objCatalog.ShutDownApplication(lcAppName)

That way the DLL is released without shutting down the entire website.
Another cool feature:
Install the COM component in COM+ on the server (let's say data-server)
where the VFP data files are stored.
Then export that application from COM+ into an Application Proxy and then
install that proxy on the web-server
The web server will the call the COM component as if it's local. COM+ will
then take care of the communication of the requests and responses to the
actual implementation on the data-server. It's like a DCOM call, but with
better configuration options.

Sietse

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Derek Kalweit
Sent: dinsdag 27 februari 2007 18:12
To: [EMAIL PROTECTED]
Subject: rebuilding quickly for IIS-loaded COM objects/web services

Hi. Usually when I develop COM objects/web services in VFP, I have to
do an 'iisreset' before each build, as IIS holds on to the VFP COM
object. I found a quicker solution to this that can easily put in a
quick prg along with the build commands-- or use a project hook:

* replace 'virtualdir' with the name of your virtual directory

o = GetObject("IIS://localhost/w3svc/1/Root/virtualdir")
o.appunload()


This will greatly speed up my iterative development process, and
thought I'd share this tid-bit in case anyone else is wasting time the
same way I was...


-- 
Derek


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to