?
Solved

Trace events in vb.net code

Posted on 2010-09-23
3
Medium Priority
?
602 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33749525
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
ID: 33761150
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 2000 total points
ID: 33761327
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

764 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