Wednesday 15 July 2009

The type initializer for 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception - Resolved

Today I got this error, when I tried to deploy an application developed using Visual Studio 2005 and Crystal Reports 10.

I googled the problem and found out many solutions which worked for many people. But only one solution worked for me. Anyway I will post all the things that I have tried.

Solution #1

Run ‘CRRedist2005_x86.msi’. This file can be found on ‘C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports’. And if you have already installed this you will be prompted to Repair or Uninstall. But none is required if it’s already installed.

Solution #2

Uninstall the Crystal Reports for Visual Studio 2005 using the Visual Studio Instalation DVD and Reinstall it again.

Steps to uninstall the Crystal Reports for Visual Studio 2005

  1. Insert the Setup DVD

  2. Select ‘Change or Remove Visual Studio 2005’ (Then the setup will run on Maintenance Mode)

  3. Select ‘Add or Remove Features’

  4. Uncheck the ‘Crystal Reports For Visual Studio’ checkbox

  5. Click on ‘Update’ button

  6. Afterwards do the above steps and on step 4 select the ‘Crystal Reports For Visual Studio’ checkbox and click on ‘Update’ button

Solution #3

Create a setup using the Crystal Reports Merge Module, It can be downloaded from And run it on the deployment machine

Solution #3 worked for me..

Hope this will be helpful to you …………


  1. As u will install this fesature "Crystal Report Basic for VS 2008" this CRRedist2008_x86.msi will be available at C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5, run this file at required machine. Error Reolved.

    Shahzad Ali (Pak-Karachi) Express New


    2. "Crystal Report Basic for VS 2008" this CRRedist2008_x86.msi worked for me! thanks :)

  2. I am working on vs2008 and crystl rprt 10.5 on local machine and webserver config is(windows 2008 and IIS7)

    After Shazhad Ali has said i have done this but still i got this error

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

  3. Hi Shiv,

    Have you tried the one of 3 solutions that I have mentioned initially?

  4. Hi Manjuke,

    i tried Solution3 i.e opening this Url( for making setup using merge modules and it is redirected to this url

    from there i am unable to find any kind of file and i am not able to understand what to do next?

  5. Hi Shiv,
    Try this link. You can get the required merge modules from here:

  6. Hi Manjuke,
    thanks. Solution 3 worked for me. But I am not able to see any tool bar buttons like export, print etc in report

    1. yes. but it worked after copying the aspnet_client folder from inetpub to virtual directory. thanks for your help

  7. Hi Manjuke, I'm Nico would like to thank you for your help. I have solved my issue.

  8. Hai Manjuke. I am working on Visual studio 2005 and Crystal report 8.5. Before I changed the project from debug 86x it's working for me. After I change configuration manager to x64. The project not working and show the error like you "The type initializer for 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception - Resolved" What should I do? Help me please

    1. Please get the crystal reports runtime for 64-bit for your version and install it. It should fix the issue. If there issue is coming in the machine you have deployed they you need to get the merge modules for the required version and build your setup from visual studio.