I am trying to use Report Viewer control in one of my custom web part (on ascx) of SP 2010. As I drop the report viewer control on my ascx it register its assembly on top with assembly version 10.0.0.0. When I deploy my site I get the following error.
Note: I have not added any reference to my project to any of the Report Viewer Assembly.
I even tried to match the version of assembly in web application's web config in handler section but still no effect.
In GAC there are three version of the Microsoft.Reporting.WebForms.ReportViewer 220.127.116.11, 18.104.22.168 and 10.0.0.0 I can not uninstall any of those.
The base class includes the field 'ReportViewer1', but its type (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Reporting.WebForms.ReportViewer).
Please help me resolving this error.