473,406 Members | 2,954 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,406 software developers and data experts.

Custom Config Section Handler

Hello,

I have implemented a custom config section handler by implementing the
IConfigurationSectionHandler interface. I have registered this handler
in web.config and everything works fine ... for a while. At random
points in time my section handler stops working and throws the
exception:

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message:
<exception>
Exception in configuration section handler.

Source Error:

Line 57: <add key="UserFormResponse"
value="userformresponse/UserFormResponse.aspx" />
Line 58: </appSettings>
Line 59: <logging>
Line 60: <global rethrowExceptions="True"></global>
Line 61: <logGroup name="PrimaryLoggingGroup"
loggingLevel="2" primaryLoggingGroup="true">

Source File: C:\Webroots\app\web.config Line: 59
------------------------------------------------------------------------
--------
Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET Version:1.1.4322.573
------------------------------------------------------------------------
--------
</exception>

The really weird thing about this is that the code is running fine
hours at a time and suddenly this occurs.

I have discovered that I am able to get the code running again by
removing the custom section, saving web.config, and reinserting it into
web.config. Weird, huh?

My web.config looks like this

in <configuration> I have placed the following which registers my
custom handler:

<configSections>
<section name="logging" type="Vertica.Log.Config, Vertica.Log,
Version=1.0.1591.19924, Culture=neutral, PublicKeyToken=null" />
</configSections>

I have also tried it in the form of (both produces the same error after
some time)

<configSections>
<section name="logging" type="Vertica.Log.Config, Vertica.Log />
</configSections>

My config section looks like this (also in the <configuration> section):

<logging>
<global rethrowExceptions="True"></global>
<logGroup name="PrimaryLoggingGroup" loggingLevel="2"
primaryLoggingGroup="true">
<logger type="SQL" loggingLevel="1" connectionString="blablabla"
failoverGroup="FailoverLoggingGroupForPrimaryLoggi ngGroup" />
</logGroup>
<logGroup name="FailoverLoggingGroupForPrimaryLoggingGroup"
loggingLevel="3" primaryLoggingGroup="false">
<logger type="EMAIL" loggingLevel="default" to="" from="" cc=""
bcc="" />
</logGroup>
</logging>

At this point I really have no clue as to where I should look. Hope
someone can make heads and tails out of this.

--
Med venlig hilsen,
Søren Lund
http://www.publicvoid.dk
Nov 18 '05 #1
0 1816

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

Similar topics

1
by: Shaun | last post by:
Hi, I created a custom Section handler using System.configuration for Web application to read from Web.Config File. If I want to use the same handler to read from app.config file: app.config is...
1
by: Hazzard | last post by:
I am trying to create a custom section and section handler in my config file. The custom section should be something like; <appSecurity> <method name = "Protect the Ice Cream"> <allow group =...
4
by: Nick Gilbert | last post by:
Hi, I would like the ability to store the configuration settings for all versions of my site in a single web.config file by using different sections. Eg: <siteConfig> <machine name="XENON">...
2
by: murl | last post by:
Below is what i have as the custom section in the web.config file... <?xml version="1.0" encoding="utf-8" ?> <configuration> <!-- register local configuration handlers --> <configSections>...
3
by: Mads Brydegaard | last post by:
Hi, I have created a custom Config handler for reading a custom config section in my .config file(s) It works very well! I have placed a web.config in my root directory and then I use sub...
6
by: Tabi | last post by:
Hi, I want to create a custom section in my web.config that can hold my custom values. I created a section in web.config as written below. <configSections> <section name="myCustomSection"...
2
by: Laurent Bugnion | last post by:
Hi, I like to develop custom controls for a number of webpages. These controls are often customizable, so that they can be reused in a number of situations. My question is: What is the best...
7
by: =?Utf-8?B?RG91Z2llIEJyb3du?= | last post by:
Hi I've written custom configuration section (inherits from System.Configuration.ConfigurationSection) to simplify the contents of the config file and to make life easier when accessing them in...
2
by: Smithers | last post by:
I have a Windows Forms application that implements a plug-in architecture whereby required assemblies are identified and loaded dynamically. Here are the relevant classes: A = application =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.