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

Forum statistics

Threads
473,991
Messages
2,570,212
Members
46,800
Latest member
Tobi1987

Latest Threads

Top