Hi,
In C# ASP.NET Web Application project error handling is not done at page
level by default. The problem can be that by default several handlers are
exposed in Global asax.cs but they are NOT assigned to events. If error
handling is supposed to be at the HttpApplication level access property
editor for Global.asax.cs[Design] select events tab and assign a proper
handler to the Error event. This can be also done manually in
InitializeComponent().
regards,
Marek
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
Typically, the error is not in the global asax file but in the page. You
most likely have hooked up your error event at the page level (I believe
vb
does that by default, not sure). Have a look at your initializateComponent
routine. Look for this line Page.Error += ....
This prevents run-time errors from percolating up the stack to the global
level. In effect, exceptions are swallowed at the page level if they
aren't
caught. You can choose to remove it or transfer your code in global asax
to
the page level error event handler.
--
Regards,
Alvin Bruney
[ASP.NET MVP
http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here...
http://tinyurl.com/27cok
I have an ASP.NET application developed in Visual Studio .NET 2003.
The Application_Error in Global.asax never gains control. If the
following
is in Global.asax and I cause a Divide-by-zero the message never
appears.
protected void Application_Error( Object sender, EventArgs e )
{
Response.Write("Error" );
Server.ClearError( );
}
What am I overlooking?