I am trying to use ReportViewer 9 in Visual Studio 8 but I get this error when I try to run the page:
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 test it with a new clean project if the viewer works with VS2008. Another stupid question, are you using viewer for WebForms or WinForms – I am sure there are two separate
viewers (it is really stupid question but still please check it).If the test above
is successful, and if you had previous version in past, your bin folder can have DLLs from both versions.I would suggest trying the following:·Close the VS solution
·Delete file with extension .suo (it is hidden file so make sure you found one)·Go to bin folder and delete everything
·Open solution and rebuild it: clean the solution first (Build\Clean Solution), then rebuild solution (Build/Rebuild Solution).
This solution helped me. I hope it is helpful for someone else.
Tt
Tt
Marked as answer by mzlat on Jul 03, 2008 07:06 PM
Change in your Web.config all "Microsoft.ReportViewer.WebForms, Version=8.0.0.0,..." to " Microsoft.ReportViewer.WebForms, Version=9.0.0.0,..." and in controls "Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0,..." to "Register Assembly="Microsoft.ReportViewer.WebForms,
Version=9.0.0.0,..."
I tried all of the above as well as removing the bin files and .suo file. None of these worked. What did work for me was going to the Solution Explorer -> [Project Name] -> References -> delete the Report viewer reference and readd the correct one.
I tried all of the above as well as removing the bin files and .suo file. None of these worked. What did work for me was going to the Solution Explorer -> [Project Name] -> References -> delete the Report viewer reference and readd the correct one.
Thanks. That solved my issue.
Lynn
Please mark replies that have helped you as answers.
mzlat
0 Points
2 Posts
(Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft...
Jul 02, 2008 07:39 PM|LINK
I am trying to use ReportViewer 9 in Visual Studio 8 but I get this error when I try to run the page:
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 if you can!
Thanks
mzlat
0 Points
2 Posts
Re: (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Micro...
Jul 03, 2008 04:39 PM|LINK
· Open solution and rebuild it: clean the solution first (Build\Clean Solution), then rebuild solution (Build/Rebuild Solution).
This solution helped me. I hope it is helpful for someone else.
Tt
Ttmwolowski
Member
2 Points
1 Post
Re: (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Micro...
Aug 30, 2008 02:48 PM|LINK
Change in your Web.config all "Microsoft.ReportViewer.WebForms, Version=8.0.0.0,..." to " Microsoft.ReportViewer.WebForms, Version=9.0.0.0,..." and in controls "Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0,..." to "Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0,..."
It should help
mw
MarkB12
Member
2 Points
1 Post
Re: (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Micro...
Jul 24, 2009 07:00 PM|LINK
I tried all of the above as well as removing the bin files and .suo file. None of these worked. What did work for me was going to the Solution Explorer -> [Project Name] -> References -> delete the Report viewer reference and readd the correct one.
lberan
Contributor
4089 Points
1097 Posts
Re: (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Micro...
Sep 10, 2009 06:46 PM|LINK
Thanks. That solved my issue.
Please mark replies that have helped you as answers.
lizannpark
Member
2 Points
1 Post
Re: (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Micro...
Sep 25, 2009 01:09 PM|LINK
Solved mine too. Should have thought of that! Thanks
oskarcharles
Member
58 Points
22 Posts
Re: (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Micro...
Aug 20, 2010 09:41 PM|LINK
Cleaning the solutions works fine for me !
Thanks,
Noman.Rao
Member
6 Points
3 Posts
Re: (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Micro...
Jan 09, 2012 12:07 PM|LINK
Remove the references of Microsoft.Reporting.WebForms,Microsoft.Reporting.Common
and add them once again of the Version which you have used in web.config.
Noman Rao
ksheerasagar...
Member
3 Points
5 Posts
Re: (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Micro...
Feb 14, 2012 03:44 PM|LINK
Cleaning the solutions works fine for me as well