[Mono-bugs] [Bug 63469][Nor] Changed - Mono ASP.NET page level tracing does not match MS ASP.NET

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 20 Aug 2004 19:14:00 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen@pandora.be.


--- shadow/63469	2004-08-20 15:28:12.000000000 -0400
+++ shadow/63469.tmp.1856	2004-08-20 19:14:00.000000000 -0400
@@ -47,6 +47,45 @@
 Let me know if you need a repro for this.
 ------- Additional Comments From gonzalo@ximian.com  2004-08-20 15:28 -------
 Yes, please, attach a test case.
 David Taylor checked all the Trace handling with a fair amount of
 tests and all of them passed.
+------- Additional Comments From gert.driesen@pandora.be  2004-08-20 19:13 -------
+I've attached a tar archive containing a small ASP.NET test app 
+containing three aspx pages :
+WebFormTraceOn.aspx -> trace attribute in Page directive = "true"
+WebFormTraceOff.aspx -> trace attribute in Page directive = "false"
+WebFormTraceDefault.aspx -> no trace attribute in Page directive
+(you actually only need this last page to reproduce this issue)
+When no explicit value for the "trace" attribute for a given aspx 
+page is set, it should default to the value of the "enabled" 
+attribute on the <trace> element in <system.web> of the application 
+configuration file.
+However, in Mono the value of TraceContext.IsEnabled seems to 
+default to false when no explicit value for the trace attribute is 
+You can verify this by running the test app on both MS.NET and Mono, 
+and requesting the "WebFormTraceDefault.aspx" page.
+On MS.NET, the following information will be output in the "Trace 
+Information" section :
+aspx.page Begin Init   
+aspx.page End Init                      0,000656 0,000656 
+Mono Test WebFormTraceDefault Page_Load 0,001201 0,000545 
+aspx.page Begin PreRender               0,001243 0,000042 
+aspx.page End PreRender                 0,001263 0,000021 
+aspx.page Begin SaveViewState           0,001397 0,000134 
+aspx.page End SaveViewState             0,001734 0,000337 
+aspx.page Begin Render                  0,001763 0,000028 
+aspx.page End Render                    0,095691 0,093929 
+while on Mono the "Trace Information" section of the trace log 
+contains no entries (which is because TraceContext.IsEnabled is