locked
The type 'Microsoft.Reporting.WebForms.ReportViewer' RRS feed

  • Question

  • User-555039797 posted

    The type 'Microsoft.Reporting.WebForms.ReportViewer' exists in both 'C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\9.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll' and 'C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll

    Thursday, July 25, 2019 12:26 PM

All replies

  • User-719153870 posted

    Hi SahilBorse,

    The web.config file automatically generated references for both these two dll with different versions.

    Please try to remove one of them, for example,

    Remove below in your web.config file:

    <add namespace="Microsoft.Reporting.WebForms" assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" tagPrefix="Reporting"/>

    Best Regard,

    Yang Shen

    Friday, July 26, 2019 1:31 AM