Skip to Content
0
Oct 07, 2020 at 06:16 PM

Crystal Reports for Visual Studio, application does not work on client PC

170 Views

Hi,

I created a crystal reports application in visual studio 2019 with CRforVS13SP29, called in the crystal report and print the report to a pdf file. I have tested the code and works perfectly on my PC. When I run the executable on the clients PC I receive the below error from the event viewer in windows. I also tried creating a setup msi that included CrystalDecisions.ReportAppServer.Prompting and CrystalDecisions.Shared. This did not work either. I'm not sure what the issue is. I have tested the app on 2 client PCs and it doesnt work on either of them.

Application: ARInvoicePrint.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException at CrystalDecisions.Shared.SharedUtils..cctor() Exception Info: System.TypeInitializationException at CrystalDecisions.Shared.SharedUtils.get_CurrentControl() at CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture() at CrystalDecisions.Shared.LocaleManager..ctor() at CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer() at ARInvoicePrint.Form1.InitializeComponent() at ARInvoicePrint.Form1..ctor() Exception Info: System.InvalidOperationException at ARInvoicePrint.My.MyProject+MyForms.Create__Instance__[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon) at ARInvoicePrint.My.MyProject+MyForms.get_Form1() at ARInvoicePrint.My.MyApplication.OnCreateMainForm() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[]) at ARInvoicePrint.My.MyApplication.Main(System.String[])