无法在Web应用程序中生成PDF文件

时间:2016-03-30 09:50:22

标签: c# asp.net-mvc export-to-pdf

我的网页中有导出为PDF选项。在实时网站中导出PDF时,会显示连接重置错误。但它在我的本地来源工作。 这意味着该功能在http站点中正常工作,但在https站点中没有。

有人帮我解决了这个问题吗?

此致

Nithya G

2 个答案:

答案 0 :(得分:0)

我怀疑它是服务器端的文件夹安全设置。您的申请无权撰写。

答案 1 :(得分:0)

我通过安装 Crystal 报表运行时 32 位或 64 位为 Windows Server 2016 解决了这个问题。执行此操作后,报告正确生成。

您可以从这里下载 CRRuntime:

CRRuntime 64 位
https://downloads.i-theses.com/index.php?option=com_downloads&task=downloads&groupid=9&id=101

CRRuntime 32 位
https://downloads.i-theses.com/index.php?option=com_downloads&task=downloads&groupid=9&id=100