Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing IIS VirtDir HttpErrors
Message
De
07/10/2002 20:43:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Changing IIS VirtDir HttpErrors
Divers
Thread ID:
00708576
Message ID:
00708576
Vues:
47
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform