473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Configuration Error Not Helpful

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
start working with this site soon, and probably messing with the
configuration. I've found that if there is an error in my custom
configuration section, the message I get is "Exception in
configuration section handler" regardless of what kind of exception
I'm throwing from inside the handler code.

I can go in and debug the site and find what exception is actually
being thrown, but this is a pain to do, and once others start messing
with things they will be very confused by this.

Is there any way to get it to display a more meaningful error - like
for instance the one I am throwing?

Nov 19 '05 #1
2 952
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?

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/

"Peter D. Dunlap" wrote:
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
start working with this site soon, and probably messing with the
configuration. I've found that if there is an error in my custom
configuration section, the message I get is "Exception in
configuration section handler" regardless of what kind of exception
I'm throwing from inside the handler code.

I can go in and debug the site and find what exception is actually
being thrown, but this is a pain to do, and once others start messing
with things they will be very confused by this.

Is there any way to get it to display a more meaningful error - like
for instance the one I am throwing?

Nov 19 '05 #2
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.

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dean | last post by:
This is a problem in ASP.NET, when I run an application from Visual Studio (2003) when I do a "start without debugging". The asp page uses objects that I have built in 3 other projects,...
3
by: fred bliss | last post by:
Hi All We have a new server running the latest framework, windows server 2003 & IIS 6.0, and we're getting the following error when we try to load the app in IE. Server Error in...
0
by: VB Programmer | last post by:
I added a rich text editor to my webpage. When I run the form I get this error. Any ideas? Server Error in '/HtmlTest' Application....
1
by: Ivan | last post by:
Hi, I have moved an entire solution from .netframework 1.0 to 1.1; also I have migrated the solution to VS2003. After this I have added a new project (Web) to previous solution; I'm referencing...
2
by: Rob G | last post by:
Hi, I am new to this ASP.NET thing and while going very slow, I am learning. Then I got a Configuration Error out of nowhere when I ran my project. I do have Excel as reference (but I haven't...
0
by: VB Programmer | last post by:
I've been using a Rich Textbox control on my webform. It works great. Doing work on another page then all of a sudden when I run the web app I get this error. Any ideas? Server Error in...
1
by: Oney | last post by:
I use Microsoft Exception management block to publish exception to event log. but some error occured. Error is blow, how can I solve this problem ??? Configuration Error Description: An error...
3
by: VB Programmer | last post by:
I am using the free rich text editor control from ExportTechnologies. Every once in a while I get this error (for no apparent reason). Sometimes it happens even when I'm working on a totally...
4
by: scottrm | last post by:
We have two developers, call them A and B, (on Windows XP) developing a number of asp.net web sites on a shared server (Windows 2003). Everything has been ok but recently for no apparent reason...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.