By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,495 Members | 905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,495 IT Pros & Developers. It's quick & easy.

System.Diagnostics.Trace.Write() doesn't work in ASP.NET apps

P: n/a
Hi there,

My ASP.NET 2.0 app uses an external assembly that calls methods like
Trace.Write() and Trace.TraceError() of namespace System.Diagnostics.
I need to enable tracing in my web app so that I could see the trace
messages from the component.

Here's what I've added to web.config so far:

<trace writeToDiagnosticsTrace="true"/>
<add name="GS.Pwm.Crm" value="4"/>
<add name="Test Log" value="4"/>
<trace autoflush="true">
<add name="WebPageTraceListener"
System.Web, Version=, Culture=neutral,
<add name="Test Log"
System, Version=, Culture=neutral,
PublicKeyToken=b77a5c561934e089" traceOutputOptions="Callstack"
initializeData="C:\test\test.log" />
<add name="GS.Pwm.Crm"
System, Version=, Culture=neutral,
initializeData="Application" />
If I look into c:\test\test.log or the event log, I'll see the standard
ASP.NET trace messages, e.g. Begin PreInit End PreInit Begin Init
However, there is no output from any Trace.Write() methods.
Even if I put a Trace.Write inside Page_Load() of one of my pages, it
has no effect.

Your help is greatly appreciated.


Apr 20 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Same for Debug.Write() for me...

Apr 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.