+2006-09-08 Robert Jordan <robertj@gmx.net>
+
+ * Page.cs: assure that RenderTrace is called even if an
+ exception occurred. Fixes bug #78930.
+
2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* TemplateControl.cs: search for the new Page_* event handlers in 2.0.
context.ClearError (e);
// We want to remove that error, as we're rethrowing to stop
// further processing.
+ Trace.Warn ("Unhandled Exception", e.ToString (), e);
throw;
} finally {
try {
+ RenderTrace ();
UnloadRecursive (true);
} catch {}
if (Thread.CurrentThread.CurrentCulture.Equals (culture) == false)
HtmlTextWriter output = new HtmlTextWriter (_context.Response.Output);
RenderControl (output);
Trace.Write ("aspx.page", "End Render");
-
- RenderTrace (output);
}
- private void RenderTrace (HtmlTextWriter output)
+ private void RenderTrace ()
{
TraceManager traceManager = HttpRuntime.TraceManager;
if (!Trace.HaveTrace && traceManager.Enabled && !traceManager.PageOutput)
return;
- if (!traceManager.LocalOnly || Context.Request.IsLocal)
+ if (!traceManager.LocalOnly || Context.Request.IsLocal) {
+ HtmlTextWriter output = new HtmlTextWriter (_context.Response.Output);
Trace.Render (output);
+ }
}
void RaisePostBackEvents ()