Hi, I am using VWD 2010, MSSS 2008 R2 with Reporting Services. I want to create a report with Report Builder 3, put it on the Report Server and show it in a web form of a web site created with VWD 2010.
In the toolbox of VWD 2010 there was a reportViewer control version 9.0.0.0. I downloaded and ran ReportViewer 2010 redistributable package, then in the toolbox I selected "Choose items...", browsed to Windows\Assemblies\GAC_MSIL\Microsoft.ReportViewer.WebForms, where there are three different versions (8.0.0.0, 9.0.0.0 and 10.0.0.0), selected version 10.0.0.0 and loaded the dll. In the list of .NET Framework Components I unchecked the ReportViewer version 9.0.0.0 and checked the version 10.0.0.0.
Now in the toolbox when I hover over the reportViewer control the tooltip says "ReportViewer version 10.0.0.0" but when I put it on the web form the following line is added to the .aspx file:
<%@RegisterAssembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Reporting.WebForms"TagPrefix="rsweb" %>
showing that a version 9.0.0.0 of the reportviewer is used.The control is written as follows:
<rsweb:ReportViewer ID="ReportViewer1" runat="server">
</rsweb:ReportViewer>
but in the design view the control says:
Error Creating Control -ReportViewer1
Failed to create designer 'Microsoft.Reporting.WebForms.ReportViewer, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Just to give a try I put the following in the reportViewer control:
<rsweb:ReportViewerID="ReportViewer1"runat="server"ProcessingMode="Remote">
<ServerReportReportServerUrl="http://localhost/ReportServer_SQLEXPRESS"ReportPath="distritos1.rdl"/></rsweb:ReportViewer>
When trying to view the web form in IE I get the following error:
BC30560: 'ReportViewer' is ambiguous in the namespace
'Microsoft.Reporting.WebForms'.
What have I to do to use the ReportViewer correctly in VWD 2010 and show a report either in local or remote?
Thanks for any help