cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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[])

Accepted Solutions (1)

Accepted Solutions (1)

DellSC
Active Contributor

Did you install one of the runtimes on the computer where the application is running? You can't just copy the .dll files that are referenced by your application - they use many others. Instead, you have to install a corresponding SDK runtime with the same SP as you've used to develop your application. The runtime has to be installed while logged in with Administrator rights because there are a bunch of registry entries that get created.

-Dell

0 Kudos

This is what I was missing. Thank you so much(For the 2nd time)!!!

Answers (0)