.

The type … exists in both … and …

coming accross this error:

Compiler Error Message: CS0433: The type ‘Microsoft.Reporting.WebForms.ReportDataSource’ exists in both ‘c:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\8.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll’ and ‘c:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\9.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll’

This can be fixed by ensuring you have the following in your webconfig file:

 

<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
       <assemblyIdentity name="Microsoft.ReportViewer.WebForms" publicKeyToken="b03f5f7f11d50a3a"/>
      <bindingRedirect oldVersion="8.0.0.0-8.1.0.0" newVersion="9.0.0.0"/>
     </dependentAssembly>
    </assemblyBinding>
 </runtime>
</configuration>

One Response to this post.

  1. Posted by Ertu on 16.12.10 at 4:07 pm

    Thank you very much. It is very helpful

What's your thoughts on this?

*

Protected by WP Anti Spam