1 Attachment(s)
VB.Net App - SAP Crystal Reports Error when running app on another computer
I have a VB.Net desktop app with Crystal Reports. The published version on my computer works fine but on another one I get the following error: "The type initializer CrystalDecisions.CrystalReports.Engine.ReportDocument threw an exception"
How can I solve this problem? I looked at other forums and answers but none of them solved my problem yet. Some of the things I have tried are:
- Unchecked the check mark highlighted in red in the attached screenshot
- Installed the 64 bit version of SAP Crystal Reports on my computer
- Also added/imported this references:
CrystalDecisions.Web
CrystalDecisions.CrystalReports.Engine
CrystalDecisions.Shared
CrystalDecisions.ReportSource
CrystalDecisions.Windows.Forms
Thank you very much for your help and time.
Re: VB.Net App - SAP Crystal Reports Error when running app on another computer
Do you have the Crystal run-times on the other PC? I'm not 100% sure about it but I think they need installed. Not Crystal itself, just the run-times.
Re: VB.Net App - SAP Crystal Reports Error when running app on another computer
That same computer runs well with Crystal Reports with another application, but it does not with this one.
Also, I unchecked "Prefer 32-bit" from the app properties and Crystal Reports worked but then some Oracle-related code throws an error, so this option would not work. The app where Crystal Reports work also has "Prefer 32-bit" unchecked.