Could not load file or assembly 'Microsoft.ReportViewer.WebForms'

后端 未结 13 2370
谎友^
谎友^ 2020-12-04 17:52

I am trying to use the report viewer in asp.net and have uploaded my site. However, when my page containing the report viewer is loaded, it shows the following error:

<
13条回答
  •  盖世英雄少女心
    2020-12-04 18:14

    Updating ReportViewer should works. Use below instruction to install updated ReportViewer from Nuget Package Manager console.

    Install-Package Microsoft.ReportingServices.ReportViewerControl.WebForms

    Just add below assembly reference in your aspx file.

    Here, 15.0.0.0 is the version number of the ReportViewerControl.WebForms that was installed in my VS. Please check Reference of the Solution to confirm the version number. No need to add PublicTokens (if multiple installation exists, it may creates trouble again).

提交回复
热议问题