on 10-07-2020 7:16 PM
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[])
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
8 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.