I have developed a windows application which generates report using basic Crystal Reports in Visual Studio 2008. It was working fine in my development environment but on the client machine it was throwing this error message when I try to access the report.
When I click the details of the error message, I have got the following:
System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' at DevInventory.InventoryReport.buttonPrint_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]
After spending few hours I realized the Crystal Reports run time need to be installed to access the report on the client machine. You can find the instruction in the support website.
According to the environment (Visual Studio, 64 or 32 bits) , you can download the .msi packages from the SAP website OR you can find the package in your local drive (ie: C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5).
Then install this into the client machine, that ‘s all!
Happy Reporting..! 🙂
#1 by haneef on June 25, 2012 - 1:47 am
thankx a lot., working fine..!
#2 by Branislav on October 3, 2012 - 6:43 pm
Thanks for this text! It works! 🙂
#3 by Anil on February 1, 2013 - 4:52 am
Thanks a lot… u r a star.. its wrking perfect now 🙂
#4 by mehmet on November 20, 2013 - 2:51 am
Allah bir değil bin kere razı olsun…:)) Thanks A lot, perfect share….
#5 by Anonymous on January 4, 2014 - 2:27 am
your answer help me lot thnks
#6 by Anonymous on June 1, 2014 - 12:11 am
thanks a lot, great share 🙂 !
#7 by Murali Ram on July 22, 2014 - 12:25 am
thank a lot dude….
#8 by Anonymous on September 15, 2014 - 4:03 am
great you save my time a lot in such a critical condition.
#9 by alireza on October 22, 2014 - 4:17 pm
u are very lovely tanx very very very much much
#10 by Telza on February 19, 2015 - 3:06 am
Thank u….. 🙂 🙂 it works!