locked
DLL version both exists in GAC RRS feed

  • Question

  • I  have created an application and used reportviewer control(rdlc).

    When i build the sln the error in application. The both version exists in GAC

    Error The type 'Microsoft.Reporting.WebForms.ReportParameter' exists in both 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\11.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.WebForms.DLL' and 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\8.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll'

    In web.config added the following lines

    <dependentAssembly>
            <assemblyIdentity name="Microsoft.ReportViewer.WebForms" publicKeyToken="89845dcd8080cc91"/>
            <codeBase version="11.0.0.0" href="Microsoft.ReportViewer.WebForms.dll"/>
            <bindingRedirect oldVersion="8.0.0.0-10.0.0.0" newVersion="11.0.0.0"/>
          </dependentAssembly>
          <qualifyAssembly partialName="Microsoft.ReportViewer.WebForms" fullName="Microsoft.ReportViewer.WebForms,version=11.0.0.0,culture=neutral,publicKeyToken=89845dcd8080cc91"/>

    • Moved by Caillen Friday, June 20, 2014 12:40 PM
    Thursday, June 19, 2014 12:28 PM

All replies

  • You shouldn't need to do the config thing.  The web controls ships as part of the framework now.  It appears that you have a dependency that is trying to reference 2 different versions of the reporting controls.  Update all your projects that rely on the web control to use the version that is part of the framework you're targeting. 

    Michael Taylor
    http://msmvps.com/blogs/p3net

    Thursday, June 19, 2014 2:36 PM