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\\Microsoft.ReportViewer.WebForms.dll’ and ‘c:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\\Microsoft.ReportViewer.WebForms.dll’

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


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

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