.NETGURU
NOT ANSWERED BEFORE : I have just started to experience a problem with Trace?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngdebug' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Dennis West
I have just started to experience a problem with Trace?

With Trace set to true I get a display that show the Trace Information washed out for Trace Commands.

It looks like color is being set to 'white' for Trace.Write Commands

The Trace Display Section looks like this:

Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000438 0.000438
aspx.page Begin LoadViewState 0.000558 0.000120
aspx.page End LoadViewState 0.022213 0.021655
aspx.page Begin ProcessPostData 0.022394 0.000182
aspx.page End ProcessPostData 0.024962 0.002567
aspx.page Begin ProcessPostData Second Try 0.025264 0.000302
aspx.page End ProcessPostData Second Try 0.025394 0.000130
aspx.page Begin Raise ChangedEvents 0.025491 0.000097
aspx.page End Raise ChangedEvents 0.025582 0.000091
aspx.page Begin Raise PostBackEvent 0.025752 0.000170

aspx.page End Raise PostBackEvent 0.197258 0.002426
aspx.page Begin PreRender 0.197393 0.000135
aspx.page End PreRender 0.197677 0.000284
aspx.page Begin SaveViewState 0.298096 0.100419
aspx.page End SaveViewState 0.299501 0.001405
aspx.page Begin Render 0.299650 0.000149
aspx.page

if I copy the trace page and paste it into notepad this is what is really there.

Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000438 0.000438
aspx.page Begin LoadViewState 0.000558 0.000120
aspx.page End LoadViewState 0.022213 0.021655
aspx.page Begin ProcessPostData 0.022394 0.000182
aspx.page End ProcessPostData 0.024962 0.002567
aspx.page Begin ProcessPostData Second Try 0.025264 0.000302
aspx.page End ProcessPostData Second Try 0.025394 0.000130
aspx.page Begin Raise ChangedEvents 0.025491 0.000097
aspx.page End Raise ChangedEvents 0.025582 0.000091
aspx.page Begin Raise PostBackEvent 0.025752 0.000170
Category1- 0.034853 0.009101
Category2- 0.034992 0.000139
Spanish LangEnglish 0.035131 0.000139
Test1 vID: 1342 0.194393 0.068749
Test2 desca: --- Moderators ---<BR><BR>Language:<BR>English<BR><BR> 0.194553 0.000160
Titler: Recommended Solution: 0.194832 0.000279
aspx.page End Raise PostBackEvent 0.197258 0.002426
aspx.page Begin PreRender 0.197393 0.000135
aspx.page End PreRender 0.197677 0.000284
aspx.page Begin SaveViewState 0.298096 0.100419
aspx.page End SaveViewState 0.299501 0.001405
aspx.page Begin Render 0.299650 0.000149
aspx.page

Dennis West
West Design
MS .NET Developer
www. westontheweb.net
Click here to reveal e-mail address
Reply to this message...
 
    
Yannick Smits
Does this occur on every page or just this one?
Are you using a stylesheet/style tag, wicth might conflict with this part?

Yannick Smits

"Dennis West" <Click here to reveal e-mail address> wrote in message news:634626@aspngdebug...
I have just started to experience a problem with Trace?

With Trace set to true I get a display that show the Trace Information washed out for Trace Commands.

It looks like color is being set to 'white' for Trace.Write Commands

The Trace Display Section looks like this:

Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000438 0.000438
aspx.page Begin LoadViewState 0.000558 0.000120
aspx.page End LoadViewState 0.022213 0.021655
aspx.page Begin ProcessPostData 0.022394 0.000182
aspx.page End ProcessPostData 0.024962 0.002567
aspx.page Begin ProcessPostData Second Try 0.025264 0.000302
aspx.page End ProcessPostData Second Try 0.025394 0.000130
aspx.page Begin Raise ChangedEvents 0.025491 0.000097
aspx.page End Raise ChangedEvents 0.025582 0.000091
aspx.page Begin Raise PostBackEvent 0.025752 0.000170

aspx.page End Raise PostBackEvent 0.197258 0.002426
aspx.page Begin PreRender 0.197393 0.000135
aspx.page End PreRender 0.197677 0.000284
aspx.page Begin SaveViewState 0.298096 0.100419
aspx.page End SaveViewState 0.299501 0.001405
aspx.page Begin Render 0.299650 0.000149
aspx.page

if I copy the trace page and paste it into notepad this is what is really there.

Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000438 0.000438
aspx.page Begin LoadViewState 0.000558 0.000120
aspx.page End LoadViewState 0.022213 0.021655
aspx.page Begin ProcessPostData 0.022394 0.000182
aspx.page End ProcessPostData 0.024962 0.002567
aspx.page Begin ProcessPostData Second Try 0.025264 0.000302
aspx.page End ProcessPostData Second Try 0.025394 0.000130
aspx.page Begin Raise ChangedEvents 0.025491 0.000097
aspx.page End Raise ChangedEvents 0.025582 0.000091
aspx.page Begin Raise PostBackEvent 0.025752 0.000170
Category1- 0.034853 0.009101
Category2- 0.034992 0.000139
Spanish LangEnglish 0.035131 0.000139
Test1 vID: 1342 0.194393 0.068749
Test2 desca: --- Moderators ---<BR><BR>Language:<BR>English<BR><BR> 0.194553 0.000160
Titler: Recommended Solution: 0.194832 0.000279
aspx.page End Raise PostBackEvent 0.197258 0.002426
aspx.page Begin PreRender 0.197393 0.000135
aspx.page End PreRender 0.197677 0.000284
aspx.page Begin SaveViewState 0.298096 0.100419
aspx.page End SaveViewState 0.299501 0.001405
aspx.page Begin Render 0.299650 0.000149
aspx.page

Dennis West
West Design
MS .NET Developer
www. westontheweb.net
Click here to reveal e-mail address
Reply to this message...
 
    
Mitch Denny (VIP)
Dennis,

Deep down in the recesses of my brain I think I recall
some of the ASP.NET team saying that this is actually a
problem with tracing, that it basically uses the colors
that are defined on the stylesheet for the page.

You might need to post your source showing where you
are setting the color for the page, here is a minimal
example of what I am talking about:

<%@ Page Language="C#" Trace="true" %>

<html>

    <head>
    
        <title>Trace Test</title>
        
        <script language="C#" runAt="server">
        
        
            protected override void OnLoad(EventArgs e)
            {
            
            
                this.Message.Text = "Trace Test";    
            
            
            }
            
        
        </script>
    
    </head>
    
    <body bgcolor="#000000" text="#ffffff">
    
        <form runAt="server">
        
            <asp:label id="Message" runAt="server" />
        
        </form>
    
    </body>
    
</html>

It really bites I know. I wish it was based off some
sort of template, similar to the generator for *.asmx
files, except this would definately need to be templated
on a per-site basis.

As an interim solution, I would suggest setting the
body text color to black. Make sure you post to [aspngwishlist]
to make sure they do something about it in future releases
of ASP.NET, you can subscribe at:

    http://www.aspfriends.com/aspfriends/aspngwishlist.asp

----------------------------------------
- Mitch Denny
- Click here to reveal e-mail address
- +61 (414) 610-141
-

-----Original Message-----
From: Dennis West [mailto:Click here to reveal e-mail address]
Sent: Friday, 12 April 2002 12:40
To: aspngdebug
Subject: [aspngdebug] RE: NOT ANSWERED BEFORE : I have just started to
exp erience a problem with Trace?

here i have included an html copy of the trace table: I can not see
what could be wrong.

<table cellspacing="0" cellpadding="0" border="0"
style="width:100%;border-collapse:collapse;">
<tr>
<th class="alt" align="Left" colspan="10"><h3><b>Trace
Information</b></h3></th> </tr><tr class="subhead" align="Left">
<th>Category</th><th>Message</th><th>From First(s)</th><th>From
Last(s)</th> </tr><tr>
<td>aspx.page</td><td>Begin Init</td><td></td><td></td> </tr><tr
class="alt">
<td>aspx.page</td><td>End Init</td><td>0.000357</td><td>0.000357</td>
</tr><tr>
<td>aspx.page</td><td>Begin
LoadViewState</td><td>0.000479</td><td>0.000122</td>
</tr><tr class="alt">
<td>aspx.page</td><td>End
LoadViewState</td><td>0.026844</td><td>0.026365</td>
</tr><tr>
<td>aspx.page</td><td>Begin
ProcessPostData</td><td>0.027026</td><td>0.000182</td>
</tr><tr class="alt">
<td>aspx.page</td><td>End
ProcessPostData</td><td>0.029744</td><td>0.002719</td>
</tr><tr>
<td>aspx.page</td><td>Begin ProcessPostData Second
Try</td><td>0.030036</td><td>0.000291</td>
</tr><tr class="alt">
<td>aspx.page</td><td>End ProcessPostData Second
Try</td><td>0.030169</td><td>0.000133</td>
</tr><tr>
<td>aspx.page</td><td>Begin Raise
ChangedEvents</td><td>0.030269</td><td>0.000100</td>
</tr><tr class="alt">
<td>aspx.page</td><td>End Raise
ChangedEvents</td><td>0.030365</td><td>0.000096</td>
</tr><tr>
<td>aspx.page</td><td>Begin Raise
PostBackEvent</td><td>0.030459</td><td>0.000094</td>
</tr><tr class="alt">
<td></td><td>Category1-
            
&nbs
p;           &nbs
p;&n
bsp;  </td><td>0.040344</td><td>0.009885</td>
</tr><tr>
<td></td><td>Category2-
            
&nbs
p;           &nbs
p;&n
bsp;  </td><td>0.040501</td><td>0.000158</td>
</tr><tr class="alt">
<td></td><td>Spanish
LangEnglish</td><td>0.040604</td><td>0.000103</td>
</tr><tr>
<td></td><td>addr0:
12.239.37.177</td><td>0.217437</td><td>0.176833</td>
</tr><tr class="alt">
<td></td><td>name1:
12-239-37-177.client.attbi.com</td><td>0.338816</td><td>0.121379</td>
</tr><tr>
<td></td><td>Test1 vID: 1342</td><td>0.408455</td><td>0.069639</td>
</tr><tr class="alt">
</tr><tr>
<td></td><td>Titler: Recommended
Solution:</td><td>0.408949</td><td>0.000338</td>
</tr><tr class="alt">
<td>aspx.page</td><td>End Raise
PostBackEvent</td><td>0.411253</td><td>0.002303</td>
</tr><tr>
<td>aspx.page</td><td>Begin
PreRender</td><td>0.411378</td><td>0.000125</td>
</tr><tr class="alt">
<td>aspx.page</td><td>End
PreRender</td><td>0.411631</td><td>0.000253</td>
</tr><tr>
<td>aspx.page</td><td>Begin
SaveViewState</td><td>0.507256</td><td>0.095625</td>
</tr><tr class="alt">
<td>aspx.page</td><td>End
SaveViewState</td><td>0.508761</td><td>0.001506</td>
</tr><tr>
<td>aspx.page</td><td>Begin
Render</td><td>0.508882</td><td>0.000121</td>
</tr><tr class="alt">
<td>aspx.page</td><td>End
Render</td><td>0.554899</td><td>0.046017</td>
</tr>
</table>

----- Original Message -----
From: "Kloberg Mac (LAM)" <Click here to reveal e-mail address>
To: "aspngdebug" <Click here to reveal e-mail address>
Sent: Thursday, April 11, 2002 4:01 PM
Subject: [aspngdebug] RE: NOT ANSWERED BEFORE : I have just started to
exp erience a problem with Trace?

[Original message clipped]

| http://www.asplists.com/asplists/aspngdebug.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

</BODY></HTML>
[Original message clipped]

Reply to this message...
 
    
Dennis West
I have removed my style sheets so that is not it..I set as per your example
the Body text...did not fixed it. the Trace section displays and the rest of
the trace display ok it is just the trace command itself that fails.. It has
to be with something on the page cause other pages work....I just thought
that the trace command would be separated from the pages code..(it should
be..can't trace..the trace problem) But now I know it isn't..has all of you
have pointed this out.. so something I have done somewhere has effected it
cause it once worked.

----- Original Message -----
From: "Mitch Denny" <Click here to reveal e-mail address>
To: "aspngdebug" <Click here to reveal e-mail address>
Sent: Thursday, April 11, 2002 6:38 PM
Subject: [aspngdebug] RE: NOT ANSWERED BEFORE : I have just started to
experience a problem with Trace?

[Original message clipped]

Reply to this message...
 
 
System.Diagnostics.Trace
System.EventArgs




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification