Solved

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

Posted on 2006-11-09
9
21,370 Views
Last Modified: 2011-08-18
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
Comment
Question by:mohammadalsayeh
  • 4
  • 4
9 Comments
 

Author Comment

by:mohammadalsayeh
ID: 17906496
I think the problem is when I deploy it in any other PC even if it uses xp
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 17922898
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
 

Author Comment

by:mohammadalsayeh
ID: 17924710
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
 
LVL 100

Expert Comment

by:mlmcc
ID: 17930760
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:mohammadalsayeh
ID: 17936466
it is not working under any platform either XP or 2000
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 17945192
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
 

Author Comment

by:mohammadalsayeh
ID: 17945506
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
 
LVL 100

Expert Comment

by:mlmcc
ID: 17949236
Glad i could help

mlmcc
0
 

Expert Comment

by:jomartech
ID: 21215678
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now