Errors using TextWriterTraceListener

E

Erik Cruz

Hi.

I am trying to execute the steps of the walkthrough "Integrating ASP.NET
Tracing with System.Diagnostics Tracing". But when I change my Web.config to
use the listeners, I receive errors for the element TextWriterTraceListener:

<system.diagnostics>
<trace autoflush="true">
<listeners>
<add name="WebPageTraceListener" type="System.Web.WebPageTraceListener,
System.Web, Version=2.0.3600.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"/>
<add name="TestTracer" type="System.Diagnostics.TextWriterTraceListener,
System, Version=2.0.3600.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" initializeData="<app root
directory>\Asptesttrace.log" />
</listeners>
</trace>
</system.diagnostics>

Several errors are listed, related to the initializeData. The errors say
that there are missing tags for <app>, <root> and <directory>.

I am using VS 2005 SP1. What is going wrong here?

Regards,
Erik Cruz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top