Visual Studio 2013中的Crystal Reports异常 [英] Crystal Reports exception in Visual Studio 2013
问题描述
rptdoc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "DO- " + DateTime.Now.ToString("dd-MM-yyyy HHmmss"));
以上代码抛出此异常:
CrystalDecisions.CrystalReports.Engine.dll中发生了'System.MissingMethodException'类型的异常,但未在用户代码中处理
An exception of type 'System.MissingMethodException' occurred in CrystalDecisions.CrystalReports.Engine.dll but was not handled in user code
附加信息:找不到方法:'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'
Additional information: Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'
我正在使用Visual Studio 2013和Crystal Reports 13
I am using Visual Studio 2013 and Crystal Reports 13
推荐答案
一旦在生产服务器上遇到相同的问题。
,直到前一天一切正常,但第二天出现错误。
Once I faced the same issue on my production server. until the day before everything was working good, but the next day, the error was showing up.
经过长时间的努力,我记得进行了一些测试原因是,我的服务器为64位时,我已将应用程序池设置->启用32位应用程序更改为True;我将其更改为false,一切恢复正常。
After long hours struggling with issue i remembered for some testing reasons, i had changed the "Application Pool Settings -> Enable 32-Bit Applications" to True, while my server is 64bit; i changed it back to false and everything got normal.
如果您的服务器为32,则将此选项设置为True,否则将其设置为false。
If your server is 32 make this option True, otherwise make it false.
这篇关于Visual Studio 2013中的Crystal Reports异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!