Solved

Trace events in vb.net code

Posted on 2010-09-23
3
577 Views
Last Modified: 2012-06-27
Hi,
  How can I trace events in VB.NET 2003 code? I would like to know what pages and events that code went through to reach page requested?

Thanks.
0
Comment
Question by:amitabh04
  • 2
3 Comments
 
LVL 21

Expert Comment

by:chapmanjw
Comment Utility
You can enable Tracing and in your code use the Trace.Write() function to make notes to the trace log at the points you need to see.  See http://www.4guysfromrolla.com/webtech/081501-1.shtml for examples.
0
 

Author Comment

by:amitabh04
Comment Utility
Hi,
  Trace is on in web config file but don't see on web page any trace information. The following is the comment in the site that was provided.

"When tracing is enabled you automagically get a plethora of information on the ASP.NET Web page. Information like:

Request Details - Session Id; Request time, type, and encoding; status code, etc.
Trace Information - Page-level ASP.NET messages that you specify via Trace.Write and Trace.Warn.
Control Tree - A listing of the Web controls on the ASP.NET Web page, and how they relate to one another.
Cookies Collection - A listing of all of the cookies.
Headers Collection - A listing of all of the HTTP headers.
Server Variables - A listing of all of the server variables "


Where sould I look at for trace information?

Thanks.
0
 
LVL 21

Accepted Solution

by:
chapmanjw earned 500 total points
Comment Utility
You have to goto the trace page.

After loading your page ( ie. Page.aspx ), replace the page name with Trace.axd. It will pull up you traces.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now