Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 24, 2012 05:47 PM by ojm37
Contributor
2248 Points
832 Posts
Jan 24, 2012 04:53 PM|LINK
How do I get trace.axd to work in IIS7.5 on Windows 7?
Back in IIS6, I had the following in my web.config file:
<trace enabled="true"/> ... <system.diagnostics> <trace> <listeners> <add name="WebPageTraceListener" type="System.Web.WebPageTraceListener,System.Web,Version=2.0.3600.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"/> </listeners> </trace> </system.diagnostics> ... <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4" compilerOptions="/d:Trace=true">
I've done some searches and now have this instead:
<trace enabled="true" localOnly="true" mostRecent="false" pageOutput="false" requestLimit="10" traceMode="SortByTime" writeToDiagnosticsTrace="false" /> ... <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/d:TRACE">
However, my Trace.Writeline statements in my code do not show up in the trace. I see the asp.net trace data, but not my Trace.WriteLine statmenets (it did work in IIS6 with the setup as above).
What do I need to do to get this to work?
Jan 24, 2012 05:47 PM|LINK
Hmm. This <System.diagnostics> entry worked.
<system.diagnostics> <trace> <listeners> <add name="WebPageTraceListener" type="System.Web.WebPageTraceListener, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </listeners> </trace> </system.diagnostics>
Thanks, Owen
ojm37
Contributor
2248 Points
832 Posts
Trace.axd, Trace.WriteLine and IIS7.5
Jan 24, 2012 04:53 PM|LINK
How do I get trace.axd to work in IIS7.5 on Windows 7?
Back in IIS6, I had the following in my web.config file:
I've done some searches and now have this instead:
However, my Trace.Writeline statements in my code do not show up in the trace. I see the asp.net trace data, but not my Trace.WriteLine statmenets (it did work in IIS6 with the setup as above).
What do I need to do to get this to work?
ojm37
Contributor
2248 Points
832 Posts
Re: Trace.axd, Trace.WriteLine and IIS7.5
Jan 24, 2012 05:47 PM|LINK
Hmm. This <System.diagnostics> entry worked.
<system.diagnostics> <trace> <listeners> <add name="WebPageTraceListener" type="System.Web.WebPageTraceListener, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </listeners> </trace> </system.diagnostics>Thanks,
Owen