Hi,
Thank you for your post.
Based on my understanding, your question is how to use
System.Diagnostics.Trace in ASP.NET web application. If I've misunderstood
anything, please feel free to post here.
In order for the trace to take effect, you need to recompile your
application with the trace flag set. You do that by setting the
compilerOptions attribute to ="/d:TRACE" in the configuration line for the
language compiler you want to support tracing. Other than configuration
<system.diagnosticsin web.config, you also need to modify the compiler
switch to enable trace flag:
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp"
extension=".cs"
compilerOptions="/d:TRACE"
......
For more information, please refer to following MSDN Library article:
#Walkthrough: Integrating ASP.NET Tracing with System.Diagnostics Tracing
http://msdn2.microsoft.com/en-us/library/b0ectfxd.aspx
Hope this helps. Please feel free to post here if anything is unclear.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.