Report definition not specified error with RDLC report

You’ve a visual studio 2012 or 2013 web application project that uses report viewer control with local mode reports (RDLC).

You’ve created the RDLC report and the report path has been chosen from the Report Viewer web control as shown below.

image

Under these circumstances, when you run the project from Visual studio, you get the following error message.

  • An error occurred during local report processing.
    • The report definition for report 'Report3' has not been specified
      • Object reference not set to an instance of an object.

 

To mitigate this problem, go to the properties page of the Report viewer (Not the properties dialog box) as shown below and locate the LocalReport property.

image

 

Expand the property and in the ReportPath specify just the name of the report. It is case sensitive. In our case it is: Report3.rdlc

Please note: If the report is stored with in any folder, make sure the folder names are included with the report name.

For e.g: If the report is with in Reports folder then, Reports/Report3.rdlc

Save the project and run it. Your report should appear fine as expected.

 

HTH!

Selva.

[All the posts are AS-IS with no warranty]