Results 1 to 3 of 3

Thread: VB.Net App - SAP Crystal Reports Error when running app on another computer

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    17

    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.
    Attached Images Attached Images  
    Last edited by NicoVB.Net; Apr 7th, 2020 at 02:37 PM.

  2. #2
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,969

    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.
    Please remember next time...elections matter!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2016
    Posts
    17

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width