Yeah, nevermind.. I took your Xml snippet and stuck it in my web.config file
and everything was ok.
Here's my web.config file, I just deleted everything in <appsettings> for
brevity
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
</appSettings>
<system.web>
<compilation defaultLanguage="c#" debug="true" />
<customErrors mode="RemoteOnly" />
<authentication mode="Forms">
<forms loginUrl="login.aspx" name="adAuthCookie" timeout="240" path="/"
/>
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
<identity impersonate="true"></identity>
<trace enabled="false" requestLimit="10" pageOutput="true"
traceMode="SortByTime" localOnly="true" />
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false" timeout="240" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
<system.diagnostics>
<switches>
<add name="MainSwitch" value="4" />
</switches>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="myListenere"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="c:\myListener.log" />
</listeners>
</trace>
</system.diagnostics>
</configuration>
"Jiho Han" <ji******@infinityinfo.com> wrote in message
news:u0**************@TK2MSFTNGP09.phx.gbl...
I'd try that but even before trying, that wouldn't be a well-formed xml,
would it?
"George Durzi" <gd****@hotmail.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl... Wild guess, but what if you escape the \ in ="c:\myListener.log" /> by
doing =@"C:\myListener.lob"/>
"Jiho Han" <ji******@infinityinfo.com> wrote in message
news:OP**************@TK2MSFTNGP11.phx.gbl... I have the following defined in web.config under <configuration> node:
<system.diagnostics>
<switches>
<add name="MainSwitch" value="4"/>
</switches>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="myListenere" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\myListener.log" />
</listeners>
</trace>
</system.diagnostics>
When I tried to load a page, I get a configuration exception that says
there was an exception in configuration section handler. Can some tell me
what is wrong with this configuration?
Thanks