[Mono-bugs] [Bug 572469] New: Application_Error is not fired in the global.asax
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jan 20 19:01:38 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=572469
http://bugzilla.novell.com/show_bug.cgi?id=572469#c0
Summary: Application_Error is not fired in the global.asax
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: x86
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: chris at christopher-shaw.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=337817)
--> (http://bugzilla.novell.com/attachment.cgi?id=337817)
A project set up to show the behavior
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7)
Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
When an error is thrown in a web application the Application_Error method in
the global.asax should be called to allow for some error handling. This method
doesn't seem to be called when debugging or when a website is deployed.
Reproducible: Always
Steps to Reproduce:
1. Create a new web application
2. In the Global.asax.cs in the Application_Error method put the code
Response.Redirect("http://www.google.com");
3. In Default.aspx.cs in the buttonClicked method put throw new Exception();
4. Deploy or debug the application and go to the site.
5. Click the button
Actual Results:
It shows the standard .Net error page
Expected Results:
Get redirected to http://www.google.com
This is a great method for notifying developers of unexpected errors.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list