-
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
-
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.
-
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
-
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.