Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ReportViewer 9.0 in VS2010 - web.config changes back to 10.0

Status
Not open for further replies.

lmohr79

Technical User
Jan 18, 2005
39
US
I'm builing a web app in VS2010 using 3.5 framework. Our SSRS server is SQL2005 with no plans to upgrade in the near future. So I'm trying to use the 9.0 version of ReportViewer.

The project references Microsoft.ReportViewerCommon 9.0.0.0 and Microsoft.ReportViewer.WebForms 9.0.0.0 - no references to 10.0.0.0 .

I've changed the web.config for the reportviewer to 9.0 and added this to the file:

<add name="Reserved-ReportViewerWebControl-axd" path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler" resourceType="Unspecified" preCondition="integratedMode" />

I also changed the register assembly on each page that has a report viewer control:

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

However, when I debug, this item in web.config handler section changes back to 10.0:

<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

and the app throws the error:

The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file.

Can anyone tell me why the web.config pulls in the 10.0 reference and overwrites the 9.0? I've done quite a bit of searching and haven't found any good solutions.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top