Barcode Professional for Reporting Services and the System.BadImageFormatException
May 25, 2012 Leave a comment
You deploy the Neodynamic.ReportingServices.Barcode.dll to the Report Server’s Bin folder and at report rendering stage (or at runtime) you get the following error message or something similar to this:
Exception caught instantiating NeodynamicBarcodeControl report server extension: System.BadImageFormatException: Could not load file or assembly ‘Neodynamic.ReportingServices.Barcode’ or one of its dependencies. An attempt was made to load a program with an incorrect format.
This is likely to happen if your SQL Server Reporting Services is a 64bit edition and you deployed the Neodynamic.ReportingServices.Barcode.dll which was built/compiled for x86 platform (32bit) instead of deploying the barcode dll which was built for x64. So, to solve the issue, you need to copy (deploy) the Neodynamic.ReportingServices.Barcode.dll for x64 which you can find in the installation folder of our product. If this does not solve the issue, then contact our support team.