Skip to Content

The type initializer threw an exception for two different files

Jul 25, 2017 at 01:00 PM


avatar image


I have developed a software with VS2013, with Win 8.1 (64bit) OS on my laptop.

I have used CRRuntime_64bit_13_0_16 version 13.0.2000....(at client and my own laptop)

When i try to run the software on client machine with Win 8.1 64bit OS

i get following two exception thrown errors at two different place in SW.

1) CrystalDecisions. CrystalReports.Engine.ReportDocument threw exception

2) CrystalDecisions.Shared.SharedUtils threw exception

I have added following references in project

1) CrystalDecisions. CrystalReports.Engine

2) CrystalDecisions. CrystalReports.Design

3) CrystalDecisions. CrystalReports.TemplateEngine

4) CrystalDecisions.Data.AdoDotNetInterop

5) CrystalDecisions.ReportSource,Shared,VSDesigner,WEb

6) CrystalDecisions.Windows.Forms

Also in Windows Installer Setup Project i have added DLL's for above all. I would like to request you that , does i am missing any assembly or any reference. Please guide me. Thanks in advance. This is my kindest request plz help me out asap a i need to install it at my client office with immediate effect, sorry for asking this so urgent help. I will be very greatful for the help.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Don Williams
Jul 27, 2017 at 08:50 PM

Hi Kedar,

Runtime redist packages are here:

Install the first link onto your VS PC and do NOT install the MSI's on your DEV PC.

Rebuild your project and on the runtime PC install the 32 bit MSI from the link above.

For basic reporting all you need to include are these assemblies:

using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportSource;


10 |10000 characters needed characters left characters exceeded