473,767 Members | 2,138 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2087
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 ConsoleTraceLis tener and
what interesting here, TextWriterTrace Listener. 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

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

Walkthrough: Integrating ASP.NET Tracing with System.Diagnost ics 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.comwrot e in message
news:eB******** ******@TK2MSFTN GP04.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
16359
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: application/octet-stream'); // It will be called test.scr header('Content-Disposition: attachment; filename="test.scr"');
2
3856
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 Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
0
1748
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 Windows\System32 dir. TextWriterTraceListener tracer = new TextWriterTraceListener("traceout.txt"); Trace.Listeners.Add(tracer); Trace.WriteLine("Exception"+ex.Message); tracer.Dispose();
5
2936
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 the name of this is set in machine.config. I was hoping it would be possible to change this in web.config. I got it to work, kind of. Good news is I can change the name in my web.config file. Bad news is that trace.axd still works meaning I can...
3
2168
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 from an aspx file. Even a page with <%@ Page Language = "c#" Trace="True" %> doesnt show the trace information. If i create an .asp file, the server side code between <% %> will process and display correctly on the page.
1
4372
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 this??): System.Diagnostics.Trace.WriteLine(System.DateTime.Now.ToLongTimeString()+ "--" + dirException.ToString()); System.Diagnostics.Trace.Flush(); ((System.Diagnostics.TraceListener) System.Diagnostics.Trace.Listeners).Close();
3
2871
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 like what MFC's TRACE macro does (during debugging). Could you please share your knowledge with me? Thanks in advance.
3
1860
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 Integer = Int(img.Width) Dim img1 As New Bitmap(img.Clone(New RectangleF(0, 0, 300, 50), img.PixelFormat)) img1.Dispose()
0
1512
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 function to save in database but when i click save it shows below error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it...
0
9571
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9405
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10169
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10013
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9960
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3930
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3533
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2807
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.