Hi Peter,
What kind of error in the configuration section causes the exception to be
thrown?
Also, are you talking about 'schema' errors?
Do you also require custom configuration requirements wherein you want
specific attributes as is-required, while other attributes as optional?

Signature
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/
> I've got a custom configuration section in my web site and a custom
> handler, which all works fine. However, other people are going to
[quoted text clipped - 10 lines]
> Is there any way to get it to display a more meaningful error - like
> for instance the one I am throwing?
Peter D. Dunlap - 19 Jul 2005 13:01 GMT
>Hi Peter,
>
[quoted text clipped - 5 lines]
>Do you also require custom configuration requirements wherein you want
>specific attributes as is-required, while other attributes as optional?
It doesn't matter what kind of error it is. A recently added xsd
schema validation, and any error that gets thrown from that gets this
generic message. Previously I was not using a schema and had my own
error checking and threw my own exceptions, and the messages from
those exceptions never got displayed.
In this particular case all attributes are required. I have another
portion of the site which uses xml files and those have some optional
attributes (I specify a default value for them in the schema).
Exceptions thrown by that validation show up in full on the browser
when they happen. Exceptions thrown by the configuration code result
in an unhelpful generic message that does not indicate what the
problem is.