Поделиться через


Best Practices for Reporting Services Exception Handling

When developing Reporting Services applications, there are several methodologies you can use to eliminate or reduce the occurrence of exceptions. When exceptions do occur, provide clear and concise error messages to the user, and add adequate exception handling to prevent your applications from ending unexpectedly.

An application that sends requests to the Report Server Web service should do the following:

  • Avoid causing exceptions by preventing as many invalid requests as possible.
  • Catch exceptions and provide specific error-handling code whenever possible.
  • Deal with error cases that do not throw exceptions.

В этом разделе

Topic Description

Preventing Invalid Requests

Describes techniques for preventing requests that are not valid from being sent to the report server.

Using Try/Catch Blocks

Describes how to further enhance the reliability of your application with try/catch blocks.

Handling Warnings and Cases that Do Not Cause Exceptions

Explains how to handle errors that do not result in an exception being thrown by Reporting Services.

Using the Detail Property to Handle Specific Errors

Explains how to programmatically handle specific errors by using the Detail property of the SoapException object.

См. также

Справочник

Reporting Services SoapException Class

Основные понятия

Detail Property

Другие ресурсы

Introducing Exception Handling in Reporting Services

Справка и поддержка

Получение помощи по SQL Server 2005