473,387 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Where is trace.write going?

guy
Where do I get trace output?

Trace.Write("Hello World");
Nov 18 '05 #1
5 1900
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jay | last post by:
Hello everyone, I just got done taking a small course in ASP.NET and I'm completely sold. This is amazing compared to original ASP. My question is about the preferred method of coding the asp...
5
by: Bennett Haselton | last post by:
I've noticed that if you enter the following code in the codebehind page for an .aspx page, it won't compile because the call to Trace.Write() is not valid except in methods of a class derived from...
0
by: Alex | last post by:
Hi, I have noticed that I can only see the output of "system.diagnostics.trace.write(..)" in the output window of the dubugger. which leaves me wondering, if these statements are left in the...
3
by: Shilpa | last post by:
Where to write XQuery statements?
5
by: Brett Romero | last post by:
I have this in an app.config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.diagnostics> <trace autoflush="true" indentsize="2"> <listeners> <add name="myListener"...
1
by: Oleg Ogurok | last post by:
Hi there, My ASP.NET 2.0 app uses an external assembly that calls methods like Trace.Write() and Trace.TraceError() of namespace System.Diagnostics. I need to enable tracing in my web app so...
5
by: barnetod | last post by:
I am trying to open a text file designated by the user. Then I want to change all lower case values to capital letters. Then write file. I am stuck and can not change the characters or am...
3
by: star111792 | last post by:
hi, i have just started learning ASP. i m doing database connectivity in ASP. my problem is with the insert query. i have a page "form.asp" for taking input from user. after entering data...
3
chandru8
by: chandru8 | last post by:
Hi everybody Can anyone suggest me where to write the connection string because am writing the connection string in each form load closing it in form_unload the problem is when i want to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.