Re: Configuration Error Not Helpful

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Mon, 18 Jul 2005 23:29:02 -0700, Rakesh Rajan <rakeshrajan {at}
mvps {dot} org> wrote:

>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?

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.

.



Relevant Pages

  • Re: Find records that do not conform to schema
    ... As long as I can discover bad nodes (exceptions) and walk up to get the node ... > Xml Schema validation would be a good solution for your problem. ... > Given an XML document, and a XSD Schema document it needs to conform to, you ...
    (microsoft.public.dotnet.xml)
  • Re: Reflection problem
    ... I'm pretty sure that there are no exceptions being thrown while ... >> Incoming mail is certified Virus Free. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Real life cost of using exceptions for control flow?
    ... launch the configuration utility" type flow. ... more with catch "specific" exceptions than with catching exceptions ... the ReadConfig method is to read the config. ... On the other hand, if the config file may or may not be present "by design", ...
    (microsoft.public.dotnet.framework.performance)
  • Re: sending over DO seems to make main process block?
    ... DO is one of the few places in Cocoa where exceptions are thrown that ... an exception may be thrown when the ... avoid deadlock. ... the sender expects to be called back from the receiver, ...
    (comp.sys.mac.programmer.help)
  • Re: How much processor resources do try-catch blocks in C# use
    ... You are right...if no exceptions are thrown, ... Marc Butenko ... > I was discussing with someone how much processor resources try-catch ...
    (microsoft.public.vsnet.general)