Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > trace output stops appearing

Reply
Thread Tools

trace output stops appearing

 
 
JR
Guest
Posts: n/a
 
      05-12-2004
I'm experiencing a problem where, for seemingly no reason, trace output
stops being logged (and appearing on my pages.)

trace.enabled suddenly just turns to false.

Any idea why this happens? It actually is happening on 2 machines I work on.

Thanks.


 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      05-13-2004
Hi JR,

From your description, you found the Trace on your certain machine suddenly
stop working, all the pages or web application's Trace Enabled have been
set to false?

I'm not sure on your detailed condition, would you please confirm the
following things:
1.Have you ever done any change on the certain machine related to the
asp.net setting?

2. Since you mentioned the Page or WebApplication's Trace is set to
disabled, do you mean that each page's
@Page diretive has been set Trace=false ? or The Web.config file's Trace
element is also set to enabled=false?

3. If you manually set the Trace=true in @Page directive of each page and
enable the trace in the web.config, will it work? Or still not work no
matter how we set in @Page directive or web.config?

4. Also, I'm wondering what the detailed error info when you visit a web
page when the problem existing.

Please check the above items. If you have any other findings, please also
feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx





 
Reply With Quote
 
 
 
 
JR
Guest
Posts: n/a
 
      05-13-2004
1. No changes have been made

2. I'm setting the trace in web.config as follows:

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

I put a response.write(trace.isenabled) statement on the page so I can see
when tracing just turns off.

3. None of the pages have a separate tracing page directive set.

4. I'm not experiencing errors. I just am not getting my trace output.

-Jay

"Steven Cheng[MSFT]" <v-> wrote in message
news:...
> Hi JR,
>
> From your description, you found the Trace on your certain machine

suddenly
> stop working, all the pages or web application's Trace Enabled have been
> set to false?
>
> I'm not sure on your detailed condition, would you please confirm the
> following things:
> 1.Have you ever done any change on the certain machine related to the
> asp.net setting?
>
> 2. Since you mentioned the Page or WebApplication's Trace is set to
> disabled, do you mean that each page's
> @Page diretive has been set Trace=false ? or The Web.config file's Trace
> element is also set to enabled=false?
>
> 3. If you manually set the Trace=true in @Page directive of each page and
> enable the trace in the web.config, will it work? Or still not work no
> matter how we set in @Page directive or web.config?
>
> 4. Also, I'm wondering what the detailed error info when you visit a web
> page when the problem existing.
>
> Please check the above items. If you have any other findings, please also
> feel free to post here. Thanks.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
>
>
>



 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      05-14-2004
Hi Jay,

Thanks for the response. After some further testing , I also encountered
this behavior that the Trace.IsEnabled will return false even when the
configuration setting is enabled= true. I think the reason for the behavior
is below:

In the web.config 's <trace > element we generally have the following
settings:
<trace
enabled="true"
requestLimit="6"
pageOutput="true"
traceMode="SortByTime"
localOnly="false"
/>

The key point is the "localOnly" attribute, this attribute specifies the
number of trace requests to store on the server. The default is 10. If the
limit is reached, trace is automatically disabled.
Here is the reference in MSDN:
#<trace> Element
http://msdn.microsoft.com/library/en...cesection.asp?
frame=true

So when we post request to some pages in the web application serveral
times, if the times exceed the "requestLimit" setting, the Applicatin's
Trace will be disabled automatically. Please have a test to confirm this.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

















 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why doesn't Trace.axd show trace output after Server.Transfer? Chris Newby ASP .Net 0 07-28-2008 05:08 AM
No trace messages using Diagnostics.Trace McGeeky ASP .Net 0 02-01-2006 02:49 PM
How to redirect output from Diagnostics.Trace to Page.Trace? Matthias S. ASP .Net 1 11-30-2005 09:01 AM
Application level trace stops tracing =?Utf-8?B?RGFiYmxlcg==?= ASP .Net 5 02-08-2005 07:22 PM
Trace: Can anyone suggest a good tool to catch trace messages? Rukmal Fernando ASP .Net 4 10-27-2003 09:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57