我在带有 .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/