简体   繁体   中英

Compiler options in Visual Studio 2002?

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()

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM