By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,289 Members | 3,049 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,289 IT Pros & Developers. It's quick & easy.

Where is trace.write going?

P: n/a
guy
Where do I get trace output?

Trace.Write("Hello World");
Nov 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi,

ASP.NET Page will show trace outputs when you add Trace="True" to page
directive, that is:

<%@ Page Trace="True"...%>

You can also have an application level tracing, more information here:
http://msdn.microsoft.com/library/de...ctionality.asp

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"guy" <gu*@hotmail.com> wrote in message
news:ov********************************@4ax.com...
Where do I get trace output?

Trace.Write("Hello World");
Nov 18 '05 #2

P: n/a
Trace class output goes to trace listeners. You can define your own trace listeners or use the already defined in .Net.

The idea is to use the <trace> element of the application .config file.
You can decide during the
runtime of the Debug/Release (depending whether you use Debug/Trace class),
if the output is directed to any "Listener". You can even declare your own
classes as output sinks using the <listeners> element. This allows you to
send for instance the output to remote machine (TCP/IP?), WebService,
Window, etc. At your will.

Have a look at the following links:
http://msdn.microsoft.com/library/de...aceelement.asp
http://msdn.microsoft.com/library/de...erselement.asp

A higher level runtime tracing tool is EIF (Enterprise Instrumentation
Framework):
http://www.microsoft.com/technet/tre...pp/default.asp

Cezary Nolewajka
mailto:c.*********************@no-sp-am-eh-mail.com
remove all "no-sp-am-eh"s to reply

"guy" <gu*@hotmail.com> wrote in message news:ov********************************@4ax.com...
Where do I get trace output?

Trace.Write("Hello World");

Nov 18 '05 #3

P: n/a
guy
On Sun, 15 Feb 2004 13:15:08 +0200, "Teemu Keiski" <jo****@aspalliance.com> wrote:
Hi,

ASP.NET Page will show trace outputs when you add Trace="True" to page
directive, that is:

<%@ Page Trace="True"...%>

You can also have an application level tracing, more information here:
http://msdn.microsoft.com/library/de...ctionality.asp


Try as I may, I cannot get a trace.axd. All aspx @page has trace=true and web.config has trace=true.

My folders look like this

folder1
---default.aspx
---web.config
---folder2
-----default.aspx
-----folder3
----------mydll.dll <=== I need to see trace.write output
Nov 18 '05 #4

P: n/a
If your application is writing trace information (as opposed to single page
trace) you can see it by typing you path plus trace.axd. I don't think the
information is actual in a file. It may be in memory somewhere.
"guy" <gu*@hotmail.com> wrote in message
news:ov********************************@4ax.com...
Where do I get trace output?

Trace.Write("Hello World");

Nov 18 '05 #5

P: n/a
It's actually implemented as an http handler which recieves the request from
an axd extension. See rob howards book for a more detailed explanation if
you care.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"vMike" <Mi****************@noZorY.geZwaYrrenY.com> wrote in message
news:c0**********@ngspool-d02.news.aol.com...
If your application is writing trace information (as opposed to single page trace) you can see it by typing you path plus trace.axd. I don't think the
information is actual in a file. It may be in memory somewhere.
"guy" <gu*@hotmail.com> wrote in message
news:ov********************************@4ax.com...
Where do I get trace output?

Trace.Write("Hello World");


Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.