Original: RDLC report running in WinForm failed to load file or assembly Microsoft.reportviewer.winforms
Make a record and help a friend in trouble.
Do the RDLC report run in WinForm, and debug References "Microsoft.ReportViewer.Common.dll" and "Microsoft.ReportViewer.WinForms.dll" in VS There is no problem when debugging.
I then directly copied the debug directory under the Bin folder to another machine, and there was a "failed to load file or assembly Microsoft.reportviewer.winforms" error while printing. This is seemingly because the debug
Run the Bin directory when the reference DLL is under the local path, not packaged into the installer in the program directory without these two DLLs, so the two DLL files copied to the program run directory re-referenced. And then he jumps out.
A mistake. The specific forget, probably on the print processing what error, this question test if you run the software on the target machine installed ReportViewer will not have this problem, but
You cannot install ReportViewer on each client.
To solve this problem:
1. You can extract the ReportViewer.exe files.
2. Find the file with the extension "cab" inside, continue to unzip.
3. Find the "cab" file extension "fl_microsoft_reportviewer_processingobject_125592_125592_x86_ln.3643236f_fc70_11d3_a536" in the directory after decompression _0090278a1bb8 ".
4. Copy this file and change the name to "Microsoft.ReportViewer.ProcessingObjectModel.dll".
Finally put this DLL file into the bin file directory in the vs inside quote. OK problem solved!
RDLC report running in WinForm failed to load file or assembly Microsoft.reportviewer.winforms