• We just launched and are currently in beta. Join us as we build and grow the community.

The definition of the report 'Main Report' is invalid

Deluxe

Kitsune Lover
D Rep
0
0
0
Rep
0
D Vouches
0
0
0
Vouches
0
Posts
59
Likes
64
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
When you try to convert RDLC Report from VB.NET 2005/2008 to VB.NET 2010, you will encounter an error “The definition of the report 'Main Report' is invalid”.

This error is caused by a wrong version on the Project Reference. The work around on this is to remove the two references:

Microsoft.ReportViewer.Common
Microsoft.ReportViewer.WinForms

Here’s the screenshot of the two references that needs to be removed.

common_and_winforms_reference.jpg


After you remove the two references, add the correct version which is version 10.0.0.0

On the solution explorer, right click References and click “Add reference”.

add_reference.jpg


Hope this help.

 

452,292

323,341

323,350

Top