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

I have deployed my visual studio 2005 project to IIS 7.5 on 64 bit windows Server2008 R2. Unfortunately, I’m getting a crystal report error as given below. I have installed CRRedist2005_x86.msi on the server. But the same deployment is working on IIS 7.0 on windows Server2008 version.

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

Can anyone help?
AlanFrazerAsked:
Who is Participating?
 
vastoConnect With a Mentor Commented:
You installed the 32 bit runtime . You need to install the one for 64 bits instead -  CRRedist2005_x64.msi  ( I am not sure about the exact name)
0
 
mlmccCommented:
Are you running the app is 32-bit mode?

Did you install the 32-bit database drivers?

mlmcc
0
 
AlanFrazerAuthor Commented:
I deployed the application with "Any CPU" Platform mode. Yes i have installed SQL server2008 R2. version is below.

Microsoft SQL Server Management Studio 10.50.1600.1
Microsoft Analysis Services Client Tools      10.50.1600.1
Microsoft Data Access Components (MDAC)       6.0.6002.18005
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.0.8112.16421
Microsoft .NET Framework 2.0.50727.4241
Operating System 6.0.6002
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
AlanFrazerAuthor Commented:
thank you for your valid instructions. I have Installed CRRedist2005_x64.msi and working now.
0
 
AlanFrazerAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for AlanFrazer's comment #a39748698

for the following reason:

crystal report was not working and it is now by installing CRRedist2005_x64.msi.
0
 
mlmccCommented:
I believe vasto gave you the answer.

mlmcc
0
 
AlanFrazerAuthor Commented:
Reports are running now.  Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.