c# - ABCPDF 无法访问 FACILITY_INTERNET 中的 URL COM 错误 800c0019

标签 c# .net abcpdf

我在带有 .net 4.0 的 win7 x32 上使用 ABCPDF v8.1.1.1。 当我尝试在 https 上从 URl 打印页面时出现错误:

"Unable to render HTML. Unable to access URL COM error 800c0019 in FACILITY_INTERNET. The drive cannot locate a specific area or track on the disk. URL "

at WebSupergoo.ABCpdf8.Doc.AddUrl(String url, Boolean paged, Int32 width, Boolean disableCache)
   at WebSupergoo.ABCpdf8.Doc.AddImageUrl(String url, Boolean paged, Int32 width, Boolean disableCache)

但是当我在 http 上打印时一切正常。 谁知道如何解决这个问题?

最佳答案

根据 Rup 所说的 https 问题来猜测,可能是服务器看不到该页面。

请记住,如果这是在生产中,例如在实时服务器上,它是试图查看页面以将其添加到 pdf 链的服务器,获取您尝试查看的 URL 并将其加载到服务器浏览器。

如果服务器位于 NAT 之后,它可能无法看到自己的公共(public) IP 地址,在这种情况下,您需要将自定义条目添加到服务器上的主机文件中。

文件位置 = C:\WINDOWS\system32\drivers\etc\hosts

条目应该看起来像...

# Added to resolve websites locally, instead of to their public IPs
127.0.0.1   www.yourdomain.com

关于c# - ABCPDF 无法访问 FACILITY_INTERNET 中的 URL COM 错误 800c0019,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11257582/

相关文章:

c# - Visual Studio Express 2013 中的代码契约(Contract)支持

c# - ABCPDF 计算标题大小和位置。

c# - 如何创建可选的 DateTime 参数?

c# - LINQ-to-SQL 与 SQLite : syntax error near "SELECT" when inserting

c# - 两害相权取其轻? ViewModel 中的标记还是 View 中的逻辑?

c# - EF6 重试过程为 SqlQuery 命令抛出 "The SqlParameter is already contained by another SqlParameterCollection"

c# - 使用 filecodemodel 添加属性

c# - 如何从 .NET 连接到 Oracle DB?

javascript - ABCpdf 可以从使用 Javascript 创建的页面创建 PDF 吗?

azure - Rotativa、ABCPdf 和 EO.Pdf 在 Azure 网站中不起作用,我不想升级到 Azure "Cloudapp"