Example T830433
Visible to All Users

Reporting for ASP.NET WebForms - How to Handle Server-Side Errors

This example demonstrates how to process errors that occur on web reporting controls' server side. This example targets the ASP.NET WebForms platform, but you can use the shown exception handler implementations in ASP.NET MVC applications.

These classes expose the following methods:

Implementation Details

This example contains several report layouts and emulates exceptions that can be raised when you work with reporting controls.

The following table lists errors from this example and methods used to process these errors.

Sample Error Exception Type Processing Method
Broken Report Layout XmlException GetUnknownExceptionMessage
File Not Found FileNotFoundException GetUnknownExceptionMessage
Standard Exception on BeforePrint NotImplementedException GetDocumentCreationExceptionMessage
Custom Exception on BeforePrint CustomInvalidRangeException (descendant from Exception) GetDocumentCreationExceptionMessage
Invalid Report URL (Designer) FaultException GetFaultExceptionMessage
Custom Document Operation (Viewer) FaultException GetFaultExceptionMessage

More Examples:

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.