web.Config Confusion

J

Jim Heavey

Hello, I am trying to figure out how to add <listeners> to the web config.
The book that I am using shows the following:

<system.diagnostics>
<trace>
<listeners>
<add ....... />
</listeners>
</trace>
</system.diagnostics>

When I go and look at the web.config generated by VS.Net, I find no
"<system.diagnostics>" section - I only find a <system.web> section. When I
look in "help" under the "Asp.net Settings Schema" there is no
"<system.diagnostics>" section either. Using that same page of "help" I find
the "trace" element and when I click on it, at the top it shows the following:
<configuration>
<system.diagostics>
<trace>

So I am very confused as to where exactly it goes....where is the
<system.diagnostics> element?

In looking at the attributes and elements of the <trace>, I find the options
specified in the help section are not the same options that VS.Net generated.
The ones VB.Net generated are as follows:

<trace enabled="false" requestLimit="10" pageOutput="false"
traceMode="SortByTime" localOnly="true" />

So we exactly do I place the <listeners> element?
 

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,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top