Hi All,

I have an error occurring in my web.config file.

It occurs when the application restarts and it only occurs once. A
simple browser refresh clears the problem. It only happens in our
development staging and testing environments (Win2K) but not in my
development environment (WinXP)

I would like to do two things:

1. Handle this exception gracefully (perhaps in Application_Error?)
2. Fix the cause of the problem.

Can anyone help with either?

Snippet of the offending code in web.config to following in the next
post.

Many thanks,
Mark

Re: Exception in configuration section handler by Cuperman

Cuperman
Wed May 11 04:23:18 CDT 2005

The error fires on the "<system.diagnostics>" line, though I suspect
that the problem in embedded within:

....
<system.diagnostics>
<switches>
<clear />
<add name="ExceptionManager" value="1" />
</switches>

<trace autoflush="true" indentsize="4">
<listeners>
<add name="egOrgStrAdmin"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="c:\EG\OI\_logs\v20_egOrgStrAdmin.log" />
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
...


Re: Exception in configuration section handler by Cuperman

Cuperman
Wed May 11 04:36:10 CDT 2005

After commenting my way through this code, it is the line:

<add name=3D"egOrgStrAdmin"
type=3D"System.Diagnostics.TextW=ADriterTraceListener"
initializeData=3D"c:\EG\OI\_logs=AD\v20_egOrgStrAdmin.log" />

that is throwing the error.

- Mark


Re: Exception in configuration section handler by Cuperman

Cuperman
Wed May 11 05:49:39 CDT 2005

Further testing shows the difference (and cause) between test and
development environments is the initializeData path.

In the test environments I use "c:\Program Files\..." - and this is
where the error is thrown... but only once per application load!!

Its not the space in the path, I have tested "c:\Progra mFiles\..." and
this works just fine.

So my question now would be.. Is "Program Files" some kind of 'special'
folder in this instance?

Thanks,
Mark