ReportViewer Management Version Conflict

I have a problem with the version with the ReportViewer control. I am using Visual Studio 2010, but I think I need to use the 2005 report viewer because I am using SQL 2005. So, I installed the webconfig file to point to ReportViewer.dll 2005, everything works once, then VS edits .config web pages to point to 2010 dll versions. Here are the relevant sections of the web configuration file that I think are setting correctly:

<httpHandlers>
  <add path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" />
  <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    validate="false" />
</httpHandlers>

<compilation>
  <assemblies>
    <add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
  </assemblies>
  <buildProviders>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </buildProviders>
</compilation>

<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
  <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" 
       type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</handlers>

So, after starting it and its work several times, it automatically changes the version of the http handler to 10.0.0.0. How can I prevent this?

+3
source share
3

, , , .
. . .rdlc( ) , .

+1

, web.config, , .

Visual Studio 2008 :

  • Microsoft.ReportViewer.Common.dll( 9.0.0.0)
  • Microsoft.ReportViewer.WebForms.dll( 9.0.0.0)

, :

<system.web>
  ...
  <compilation>
    ...
    <buildProviders>
      <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />        
    </buildProviders>
  </compilation>
  ...
  <httpHandlers>
    <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
  </httpHandlers>

, :

  • 8.0.0.0
  • 9.0.0.0
  • 10.0.0.0

, , Visual Studio 2005, 2008 2010, , , :

N.B. ; , , .

+3

SQL- win forms. VS2010 ReportViewer Component Version = 9.0.0.0.

:

SQL 2005, = 9.0.0.0 , . , .aspx, , :

Register assembly = "Microsoft.ReportViewer.WebForms, Version = 9.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" namespace = "Microsoft.Reporting.WebForms" tagprefix = "rsweb"

    <form id="foo" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote" Width="950px"
                    Height="600" BorderColor="Gainsboro" BorderStyle="Solid" BorderWidth="1px">
        <ServerReport ReportPath="/foo/foo/FooReport"
                ReportServerUrl="http://foo/ReportServerSQL2005" />
    </rsweb:ReportViewer>

, ReportViewer web.conig, VS2010 ReportViewer

.

<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />

<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

Version = 8.0.0.0 Version = 10.0.0.0 .. Version =, PublicKeyToken =

reportviewer 9.0.0.0 .net .

, .aspx, , VS, "" " Contol - ReportViewer1". , , , .

, , , , 9.0.0.0 , , .

:

http://forums.asp.net/p/1985629/5691326.aspx?VS2010+ReportViewer+with+SQL+2005

However, my application is a .NET 3.5 MVC2 application, but I was still able to get it to output SQL2005 reports after considerable effort.

Ideally, you should upgrade your SQL 2005 reporting services to 2008, however, make sure everything still works by creating a copy / backup first because there is no return. Once you have achieved this, all of the above becomes unnecessary, because for us it was only an interim solution.

+1
source

All Articles