• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 21449
  • Last Modified:

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.

hi I`m working in a windows application on VS 2005 and I made reports using Crystal Reports for Visual Studio 2005

when I deploy the project on XP and print any document it goes so fine

but when I deploy it on windows 2000 it gives me that exception:

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.

can somebody tell me what is it
0
mohammadalsayeh
Asked:
mohammadalsayeh
  • 4
  • 4
1 Solution
 
mohammadalsayehAuthor Commented:
I think the problem is when I deploy it in any other PC even if it uses xp
0
 
mlmccCommented:
How are you deploying the application?

Are you using the merge modules?

Are you deploying to each machine or is this web-based?

mlmcc
0
 
mohammadalsayehAuthor Commented:
I`m using merge modules for crystal reports deployment that are auto generated by the vs.net 2005 setup and I`m deploying to each machine
0
[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

 
mlmccCommented:
I don't have vs 2005 so I am not sure but I wonder if there is a difference inthe assemblies required for XP and 2K?  In the setup does it allow you to specify the target platform?

Is there a difference in the .Net version on the machines?

mlmcc
0
 
mohammadalsayehAuthor Commented:
it is not working under any platform either XP or 2000
0
 
mlmccCommented:
It may be in the way you are deploying the application.  Here is a link to explain how to deploy in .Net

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlmn/html/crcondeployingcrystalreportsinnetapplications.asp

mlmcc
0
 
mohammadalsayehAuthor Commented:
I already added these merge modules for the crystal reports but they didn`t function but I downloaded the merge module updates from businessobjects.com that belong to crystal reports for vs.net 2005 and it worked


thanks any way
0
 
mlmccCommented:
Glad i could help

mlmcc
0
 
jomartechCommented:
Try running  C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports\ CRRedist2005_x86.msi

see the following post:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1246805&SiteID=1
 

0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now