C# code:
Trace.Writeline("hello") does not complain but does not create C:\xxx.log file.
The same code was working on asp.net 1.1 and is working on regular application on
framework 2.0. But it does not work on asp.net and webservice/framework 2.0.
I guess it may associate with security since asp application is using different context
from that of regular window/console application.
Any advice is appreciated.
_______________web.config____________________
<system.web>
<trace enabled="true" pageOutput="true" localOnly="true" writeToDiagnosticsTrace ="true"/>
</system.web>
<system.diagnostics>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="xxxxx" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\xxx.log" />
<remove name="Default"/>
</listeners>
</trace>
</system.diagnostics>
Trace.Writeline("hello") does not complain but does not create C:\xxx.log file.
The same code was working on asp.net 1.1 and is working on regular application on
framework 2.0. But it does not work on asp.net and webservice/framework 2.0.
I guess it may associate with security since asp application is using different context
from that of regular window/console application.
Any advice is appreciated.
_______________web.config____________________
<system.web>
<trace enabled="true" pageOutput="true" localOnly="true" writeToDiagnosticsTrace ="true"/>
</system.web>
<system.diagnostics>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="xxxxx" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\xxx.log" />
<remove name="Default"/>
</listeners>
</trace>
</system.diagnostics>