473,395 Members | 1,656 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,395 software developers and data experts.

save generic asp.net trace information to file

When asp.net trace is enabled in web.config,
http://mywebserver/myApp/trace.axd list parameter/value pairs for each
control in the HTML Form, ok (this is basic asp.net information and work for
all asp.net applications independently how the asp.net application is
programmed)

I would like..to save this information to a file o database (because
trace.axd information is not persistente, ..is lost when application pool is
recycled)

somebody knows a configuration or toll that allows to do this?

thanks,
alexander
Jun 27 '08 #1
1 2058
Hi,

ASP.NET provides TraceListener class, whichc serves as a base class for
trace listeners, objects which write trace data to a specified output. There
exists specific implementations of this such as ConsoleTraceListener and
what interesting here, TextWriterTraceListener. However, to integrate these
into ASP.NET (which uses its own TraceContext to write the trace data and
view it with Trace.axd) you need to turn a few switches.

You'll find information on:
http://weblogs.asp.net/dwahlin/archi...on-layers.aspx

TextWriterTraceListener
http://msdn2.microsoft.com/en-us/lib...elistener.aspx

Walkthrough: Integrating ASP.NET Tracing with System.Diagnostics Tracing
http://msdn2.microsoft.com/en-us/lib...xd(VS.80).aspx

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Alexander Wolff" <al*************@gmail.comwrote in message
news:eB**************@TK2MSFTNGP04.phx.gbl...
When asp.net trace is enabled in web.config,
http://mywebserver/myApp/trace.axd list parameter/value pairs for each
control in the HTML Form, ok (this is basic asp.net information and work
for all asp.net applications independently how the asp.net application is
programmed)

I would like..to save this information to a file o database (because
trace.axd information is not persistente, ..is lost when application pool
is recycled)

somebody knows a configuration or toll that allows to do this?

thanks,
alexander

Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dariusz | last post by:
I have the following code which executes successfully to call the browsers "save as" box... //Screensavers if ($FileType == 'scr') { // We'll be outputting a screensaver header('Content-type:...
2
by: Barry | last post by:
Hi Does anyone know why i am getting the following error message (line 64) , if i change to objBitmap.Save(Response.OutputStream, ImageFormat.Jpeg) i do not get this error Exception...
0
by: IK | last post by:
Hi all, How can I save trace output to the text file in app's dir. In addition, I need to save debug info from Session_End event in global.asax. The code below saves file only in...
5
by: who be dat? | last post by:
Hello all. I'm writing an application that is writing trace information that can be viewed in trace.axd. I would like to rename this and use a different name specific to my application. I know...
3
by: Bruno Paquette | last post by:
I have installed visual studio .net and now i started to write the first few examples from the 70-315 book by Kalani. It looks like all server side code that i put between <% %> doesnt process...
1
by: Patrick | last post by:
When Tracing in ASP.NET, the IIS process (on IIs5.1) is locking on the Trace file, and I can't read the trace file without restarting the IIS: Even the following does NOT work (how could I fix...
3
by: Arman Sahakyan | last post by:
Hi, I'm an MFC programmer and know little about .NET programming. Now, for some reasons, I'm developing an ASP .NET application... What I need to know is how to output into VS's Output Window...
3
by: avnireut | last post by:
I can't save a picture, and i dont know the reson. here is the code: Dim img As New Bitmap(Server.MapPath("409.gif")) Dim height As Integer = Int(img.Height) Dim Width As...
0
by: tilak p | last post by:
hiiiii i have a asp.net page which contains gridview after entering data to gridview and updating in gridview i have given a save button on pressing it the data in grid will be sent to save...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.