简体   繁体   中英

Error loading Crystal Report

I've a crystal report in Asp.net MVC. When I run on my local machine, it works fine. But when I deploy it on server. It gives error

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

I've added the the following dll to the bin folder while deployment.

-- CrystalDecisions.CrystalReports.Engine
-- CrystalDecisions.ReportAppServer.ClientDoc
-- CrystalDecisions.ReportSource
-- CrystalDecisions.Shared
-- CrystalDecisions.Web
-- CrystalDecisions.Windows.Forms

I've installed CRRuntime_64bit_13_0_2 on server.

Finally issue is solve. If we install CRRuntime of 64 bit. Then during publishing we have to select PLATFORM TARGET to x64, rather then Any CPU.

Thanks and Best Regards.

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