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?
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?