Exception in configuration section handler

  • Thread starter Thread starter Cuperman
  • Start date Start date
C

Cuperman

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
 
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>
....
 
After commenting my way through this code, it is the line:

<add name="egOrgStrAdmin"
type="System.Diagnostics.TextW­riterTraceListener"
initializeData="c:\EG\OI\_logs­\v20_egOrgStrAdmin.log" />

that is throwing the error.

- Mark
 
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
 
Same Problem

Hi Mark,
We are having similar problem, although the only difference is our log file path is C:\inetpub

Did you manage to find a fix?

Regards,
Suraj
 
Back
Top