Solved

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

Posted on 2013-12-31
7
5,354 Views
Last Modified: 2014-01-01
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?
0
Comment
Question by:AlanFrazer
  • 4
  • 2
7 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39748298
Are you running the app is 32-bit mode?

Did you install the 32-bit database drivers?

mlmcc
0
 

Author Comment

by:AlanFrazer
ID: 39748352
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
 
LVL 18

Accepted Solution

by:
vasto earned 500 total points
ID: 39748401
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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:AlanFrazer
ID: 39748698
thank you for your valid instructions. I have Installed CRRedist2005_x64.msi and working now.
0
 

Author Comment

by:AlanFrazer
ID: 39749826
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
 
LVL 100

Expert Comment

by:mlmcc
ID: 39748816
I believe vasto gave you the answer.

mlmcc
0
 

Author Closing Comment

by:AlanFrazer
ID: 39749827
Reports are running now.  Thank you
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Microsoft C++ code failing in executable that worked 9 101
Display multiple images in report 12 119
Crystal Reports 13 5 61
Crystal Reports 12 35
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

831 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