I am using Visual Studio 2010 and I installed "Microsoft Report Viewer 2012 Runtime" hoping to test the new reporting system in SQL 2012. After which I cleared for ref to "Microsoft.ReportViewer.WebForms" from my Web.config and removed the ReportViewer control
from my toolbox and added the new version 11 ReportViewer.
I added the new control to a testing page and for one it adds this register to the test page:
The control in the toolbox is the version 11 addition but the system keeps trying to ref the verion 10 edition. Also when I try to compile it I get the error:
The type 'Microsoft.Reporting.WebForms.ReportViewer' exists in both 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll' and 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\11.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.WebForms.DLL'
Yes I have tried changing it to 11.0 and when I got back to the test page VS re-adds the 10.0 items. I have tried both the 10.0 PublicKeyToken and the 11.0 PublicKeyToken and neither change the result.
GotCode
0 Points
2 Posts
ReportViewer 11 (2012) Visual Studio 2010
Aug 30, 2012 02:26 PM|LINK
I am using Visual Studio 2010 and I installed "Microsoft Report Viewer 2012 Runtime" hoping to test the new reporting system in SQL 2012. After which I cleared for ref to "Microsoft.ReportViewer.WebForms" from my Web.config and removed the ReportViewer control from my toolbox and added the new version 11 ReportViewer.
I added the new control to a testing page and for one it adds this register to the test page:
and it adds these entry to the Web.config:
The control in the toolbox is the version 11 addition but the system keeps trying to ref the verion 10 edition. Also when I try to compile it I get the error:
reportingservices VS2010 reportviewer VisualStudio2010
augustwind
All-Star
35860 Points
4900 Posts
ASPInsiders
Moderator
Re: ReportViewer 11 (2012) Visual Studio 2010
Aug 30, 2012 04:32 PM|LINK
Have you tried just manually editing your web.config to use the 11.0 version (in each of the locations)?
reportingservices VS2010 reportviewer VisualStudio2010
All Things Dot Net
Stored Procs and Code in a Flash!
ASP.Net Sitemap Creator
GotCode
0 Points
2 Posts
Re: ReportViewer 11 (2012) Visual Studio 2010
Aug 30, 2012 05:28 PM|LINK
Yes I have tried changing it to 11.0 and when I got back to the test page VS re-adds the 10.0 items. I have tried both the 10.0 PublicKeyToken and the 11.0 PublicKeyToken and neither change the result.