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\\Microsoft.ReportViewer.WebForms.DLL' and 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\\Microsoft.ReportViewer.WebForms.dll'

    In web.config added the following lines

            <assemblyIdentity name="Microsoft.ReportViewer.WebForms" publicKeyToken="89845dcd8080cc91"/>
            <codeBase version="" href="Microsoft.ReportViewer.WebForms.dll"/>
            <bindingRedirect oldVersion="" newVersion=""/>
          <qualifyAssembly partialName="Microsoft.ReportViewer.WebForms" fullName="Microsoft.ReportViewer.WebForms,version=,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

    Thursday, June 19, 2014 2:36 PM