Compiler options in Visual Studio 2002?

1

How do I set compiler option to any CPU in Visual Studio.NET 2002? I am trying to run windows application on 64 bit CPU's and its throwing error for loading crystal report files. Rest of the application runs fine except crystal report (.rpt) files.

Following is the error message:

Error Message : just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text ************** System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {CF76A644-314B-404D-8D45-F08B51FF990B} failed due to the following error: 80040154. at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()

.net
windows
compiler-errors
crystal-reports
visual-studio-2002
asked on Stack Overflow Mar 16, 2017 by MEngineer • edited Feb 19, 2018 by Dariusz Woźniak

1 Answer

0

You just did not install Crystal Reports on the target machine property.

It also may turn out that you've installed a 32-bit version Crystal Reports but running your application on 64-bit OS or vice versa. In this case if the required version of Crystal Reports is not available and you can't compile the your project for the desired target platform, you may use corflags utility to change target platform on your compiled assemblies. But be aware of potential problems if you use Interop!

answered on Stack Overflow Mar 16, 2017 by Dmitry Egorov

User contributions licensed under CC BY-SA 3.0