Visual Studio 2013 中的 Crystal Reports 异常

Crystal Reports exception in Visual Studio 2013(Visual Studio 2013 中的 Crystal Reports 异常)
本文介绍了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 异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)