Failed to load file or assembly Microsoft.ReportViewer.Common, version=11.0.0.0

Source: Internet
Author: User

WinForm client software development, using RDLC for reporting, and using ReportViewer to render the report, the developer's machine is running normally. But deploying to a third-party machine runs the Times wrong. There are roughly several errors:

 (1) Failed to load file or assembly "Microsoft.ReportViewer.Common, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91" Or one of its dependencies. The system cannot find the file specified. File name: "Microsoft.ReportViewer.Common, version=11.0.0.0, culture=neutral,publickeytoken=89845dcd8080cc91"

(2) Deployment of RDLC (Unable to find Microsoft.ReportViewer.ProcessingObjectModel.dll file)

(3) No Microsoft.SqlServer.Types.dll or other dependencies found

The wrong hint means that the relevant DLL is missing on the third-party machine. To the program development computer to find the corresponding baking to the client's program startup directory can be (project baked into the bin\\debug directory). Since these DLLs are all in the windows\assembly directory of the developer machine,

This directory is a predefined special directory of the Microsoft operating system, cannot directly manipulate the files inside, can only be handled by command.

Start the Cmd.exe program, enter the following command line in the window, enter one command at a time, and the copy succeeds after the carriage return.

Copy C:\Windows\assembly\gac_msil\Microsoft.ReportViewer.Common\11.0.0.0__89845dcd8080cc91\ Microsoft.ReportViewer.Common.dll D:\ReportViewer

Copy C:\Windows\assembly\gac_msil\Microsoft.ReportViewer.WinForms\11.0.0.0__89845dcd8080cc91\ Microsoft.ReportViewer.WinForms.DLL D:\ReportViewer

Copy C:\Windows\assembly\gac_msil\Microsoft.ReportViewer.ProcessingObjectModel\11.0.0.0__89845dcd8080cc91\ Microsoft.ReportViewer.ProcessingObjectModel.DLL D:\ReportViewer

Copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.Types\11.0.0.0__89845dcd8080cc91\ Microsoft.SqlServer.Types.dll D:\ReportViewer

"Other DLLs replicate in a similar way"

Failed to load file or assembly Microsoft.ReportViewer.Common, version=11.0.0.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.