IIS Server - httperrors property

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > June 2005 > httperrors property





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author httperrors property
Pablo Santiago

2005-06-26, 7:48 am

Hola,
When I interogate the httperrors metabase property I only get back those
error codes set to "File", the "Default" and "URL" ones (which are present
in the IIS Snap-In Custom Error property page) don't show up... Anyone know
where I can get and set the Default and URL http custom errors via the
metabase?
gracias
Pablo



----== Posted via webservertalk.com - Unlimited-Uncensored-Secure Usenet News==----
http://www.webservertalk.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
David Wang [Msft]

2005-06-26, 7:48 am

I do not understand your question.

The HttpErrors property contains configuration for all three types -- File,
URL, and Default. So set it as you want.

If you fetch the HttpErrors property at a certain URL location and it only
contains "File", the un-specified ones will be interpreted as "Default".

However, the UI would never setup HttpErrors like this (it would copy the
File/Default/URL settings from the parent), so the only way to see the
behavior you describe is if you custom-set HttpErrors on your own.
HttpErrors is a list property, so as documented in MSDN documentation for
HttpErrors (go search for it), it is treated as a single property whose
value is an array of expected values for each custom error
code/sub-errorcode -- and if an array element is unspecified, it is
interpreted as "Default").

See this blog entry on how to correctly manipulate list properties like
HttpErrors:
http://blogs.msdn.com/david.wang/ar.../02/273681.aspx

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Pablo Santiago" <ps@pablosantiago.com> wrote in message
news:42be7cbf$1_3@spool9-east.superfeed.net...
Hola,
When I interogate the httperrors metabase property I only get back those
error codes set to "File", the "Default" and "URL" ones (which are present
in the IIS Snap-In Custom Error property page) don't show up... Anyone know
where I can get and set the Default and URL http custom errors via the
metabase?
gracias
Pablo



----== Posted via webservertalk.com - Unlimited-Uncensored-Secure Usenet
News==----
http://www.webservertalk.com The #1 Newsgroup Service in the World! 120,000+
Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com