> 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
[quoted text clipped - 18 lines]
> >
> > What am I overlooking?
I created a new C# project. I added a button. The button issues a throw
...
throw new Exception("AAAAAAAA" );
Global.asax contains one change ...
protected void Application_Error(Object sender, EventArgs e)
{
Response.Write("Application_Error" );
}
When I run the application and click the button I get the default error
excepting message page.
I can find no way to manipulate any event properties in Global.asax using
the Designer.

Signature
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--
> Hi,
>
[quoted text clipped - 35 lines]
> > >
> > > What am I overlooking?
Marek - 12 May 2004 00:29 GMT
Hi Thom,
I am not sure if this is the real problem you're facing but try the
folowing:
When editing Global.asax.cs press shift-F7. You should get
Global.asax.cs[Design] designer. Then access property editor and assign
Application_Error handler to Error event.
Marek
> I created a new C# project. I added a button. The button issues a throw
> ...
[quoted text clipped - 55 lines]
> > > >
> > > > What am I overlooking?
Thom Little - 12 May 2004 01:45 GMT
But ... the light is so much better over here ...
Thanks. That was the problem. I was putting out the message and then it
was getting overlaid by the default error page.
When I added Context.ClearError() in the Application_Error the default page
stopped overlaying my message.
Thank you both for the help.
BTW I am using Visual Studio .NET 2003 and can find no way to access event
assignments from the designer. I did nothing special to make an assignment
and the Application_Error gained control as it should.

Signature
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--
> Hi Thom,
>
[quoted text clipped - 69 lines]
> > > > >
> > > > > What am I overlooking?
Jerry Pisk - 12 May 2004 01:12 GMT
If you don't want the default error page to show up you need to clean up
those execution errors. Just add Context.ClearError() call to the error
handler. And the error handle has to be named Application_OnError.
Jerry
> I created a new C# project. I added a button. The button issues a throw
> ...
[quoted text clipped - 55 lines]
> > > >
> > > > What am I overlooking?