Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing IIS VirtDir HttpErrors
Message
From
07/10/2002 20:43:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Changing IIS VirtDir HttpErrors
Miscellaneous
Thread ID:
00708576
Message ID:
00708576
Views:
46
Hi All,

Not sure which category this falls under but here is the issue...

I'm trying to configure a IIS virtual directory's custom error page value for 500,100 held in the HttpErrors property. HttpErrors is a data type of list, and is seen by VFP as an array. I've been unsuccessful in updating it eventhough I can update other properties.
szAppName = "myApp"
oIISvDir = GetObject("IIS://LocalHost/W3SVC/1/root/"+ szAppName)
laErrorDocs = oIISvDir.HttpErrors
SET EXACT OFF
lnIndex = ASCAN(laErrorDocs,"500,100")

szCustomError = "500,100,URL,/" + szAppName + "/errors.asp"
laErrorDocs(lnIndex) = szCustomError

* oIISvDir.HttpErrors(lnIndex).value = szCustomError

*-- Save changes
oIISvDir.Put

*-- Check value
laErrorDocs = oIISvDir.HttpErrors
?laErrorDocs(32)
I've tried different ways to access/update the list values, but I'm obviously missing something when it comes to working with this...


Thanks,

- Brian


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Next
Reply
Map
View

Click here to load this message in the networking platform