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