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"
After copying to the D-disk ReportViewer directory, copy it to the project's bin\debug directory and run the program again, everything is OK.
Failed to load file or assembly Microsoft.ReportViewer.Common, version=11.0.0.0