Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Enterprise Tools / June 2004

Tip: Looking for answers? Try searching our database.

Instrumenting an ASP.NET page life cycle

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sakthivel A - 04 Jun 2004 18:30 GMT
Hi All,

I am trying to instrument a ASP.NET page.

Starting the RequestTrace at Page_Load & closing at Dispose(), and it's
logging an event like below,

The request trace with ID=f11b5d9d-23a1-433a-9387-0e057c930545 was not
closed. Make sure you are calling Dispose() on the Request instance.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

Can anyone help me to resolve this problem.

The requirement is to find out the each control life cycle time in a page.

Thanks in advance,
Sakthi
Mike Hayton [MS] - 08 Jun 2004 18:05 GMT
This error occurs when the RequestTrace object is freed by the
GarbageCollector (GC) instead of the the program explicitly calling the
RequestTrace object's Dispose() method.

The timing of the RequestTrace starts when RequestTrace object is created
and ends when the object is Dispose().
A RequestTrace object is designed to only be used on the same thread of
execution that it was created on.

For this reason, Im a little concerned whether the Page_Load (where is
sounds like the RequestTrace object is created) is on the same thread of
execution as the page Dispose() (where I assume you manually are calling
requestTrace.Dispose())

You might want to perform your own timing (i.e. startTime = DateTime.Now in
Page_Load, and endTime = DateTime.Now; diff = endTime - startTime ) then
then just raise a message with the time in the page Dispose().

Hope this helps

Mike

--------------------

| Hi All,
|
[quoted text clipped - 15 lines]
| Thanks in advance,
| Sakthi

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.