An error occurred on the server. What should I do?

An error occurred on the server. Please contact the system administrator.

In order to get more detailed information about the error, add the following code:

reportViewer.DebugMode = DebugModeEnum.Full;

It can be one of the following errors:

  • The request failed with HTTP status 404: Not Found.

  • The remote name could not be resolved: 'ServerName'

  • Client found response content type of '', but expected 'text/xml'.
    The request failed with an empty response.

  • etc

All of them are related with the following setting (in one row):

<MsReportingServer Url="http://localhost/

Opening in a browser can help to understand if it's correct:

If it doesn't open, set the correct address. Reporting Services Configuration Manager can help to get the necessary information:

Related article: The remote server returned an error: NotFound.

Add Feedback