RDLC report running in WinForm failed to load file or assembly Microsoft.reportviewer.winforms

Source: Internet
Author: User

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

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.