Visual Studio 2013 中的 Crystal Reports 异常 [英] Crystal Reports exception in Visual Studio 2013

查看:17
本文介绍了Visual Studio 2013 中的 Crystal Reports 异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

rptdoc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "DO- " + DateTime.Now.ToString("dd-MM-yyyy HHmmss"));

上面的代码行抛出了这个异常:

Above line of code is throwing this exception:

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.

由于某些测试原因,我在长时间努力解决问题后,我已将应用程序池设置 -> 启用 32 位应用程序"更改为 True,而我的服务器是 64 位;我把它改回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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆