Solved

Trace events in vb.net code

Posted on 2010-09-23
3
589 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 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