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]


Comments (11)

  1. zaheer says:

    the answer is very helpful for me.

  2. Stuart says:

    After reading through loads of convoluted anwers on other sites this ismple step sorted it! (I then got and error that the report couldn't create a connection to my data source but this was probably an unrelated issue - I solved this by changing the TableAdapter to the fully qualified name which was the only other option shown in the 'Choose your Business' Object drop down on the page that appeared when I clicked the 'Configure Data Source' link in the 'ObjectDataSource Tasks' Smart Panel.

  3. Tony says:

    Thank a lot!

  4. Habib-ur-Rehman says:

    Thanks a lot.. its working

  5. Kumar Nikhil says:

    Thanks its finally working

  6. Kwaku says:

    Thanks a lot there. I also had to put "ProjectName." just before the typename attribute of the object datasource that was generated.

  7. Nisha Stephan says:

    Thanks a lot,..really accurate solution!!

  8. William says:

    Thank so much it was of great help

  9. 0422 says:

    Thanks a lot mate for your solution!

  10. Subaash Ravindran says:

    Thanks a Lot Friend your Solution helped me a Lot, Keep the Good work going on Friend.

  11. Soundar says:

    This is what I need to know. thanks a lot.

Skip to main content