By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,977 Members | 1,352 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,977 IT Pros & Developers. It's quick & easy.

Custom Config Section Handler

P: n/a

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

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

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:

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

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

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

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

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

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
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.