Results 1 to 4 of 4

Thread: Hello everyone

  1. #1

    Thread Starter
    Hyperactive Member jasonwucinski's Avatar
    Join Date
    Mar 2010
    Location
    Pittsburgh
    Posts
    452

    Hello everyone

    I have written a program in vb.net (using visual studio 2008). when the program opens a crystal report, though, it crashes. The program works fine on the computer i wrote it on (using XP) but it crashes on other computers (Some use XP, others are using windows 7). The error is:

    The type initializer for CrystalDecision.CrystalReports.Engine.ReportDocument threw an exception.

    I tried to add these Dll's to the directory my program is running from:

    Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll
    CrystalDecisions.VSDesigner.dll
    CrystalDecisions.Web.dll
    CrystalDecisions.Windows.Forms.dll
    CrystalDecisions.ReportSource.dll
    CrystalDecisions.CrystalReports.Engine.dll
    CrystalDecisions.Shared.dll
    CrystalDecisions.Data.AdoDotNetInterop.dll
    MoveItContentManagement.vshost.exe.manifest

    but this did not help. What am i doing wrong? do the other computers need some sort of Crystal Report framework installed? if so, where can i get it from?
    thanks
    jason

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Hello everyone

    Moved To Application Deployment

    You need to create an installation and setup package. This will grab what you need and pull it altogether in a package that will formally install you app on other machines.

  3. #3

    Thread Starter
    Hyperactive Member jasonwucinski's Avatar
    Join Date
    Mar 2010
    Location
    Pittsburgh
    Posts
    452

    Re: Hello everyone

    i did create a intaller (using setup wizard). Is there something in particular i need to add, or should it add all the dependencies on its own?

    thanks
    jason

  4. #4
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,513

    Re: Hello everyone

    Not sure about .net 2008, i use .net 2005 Pro. But I always have to add the "crystal reports .net framework 2.0" to my prerequisites in the Publish properties window. then after I publish the project, you can run the setup.exe on thevtarget machine and it will install the cr framework.

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