我在win7 x32上使用ABCPDF v8.1.1.1和.net 4.0。 当我尝试在https上从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)“无法呈现HTML。无法访问FACILITY_INTERNET中的URL COM错误800c0019。驱动器无法在磁盘上找到特定区域或轨道.URL”
但是当我在http上打印时一切都还可以。 谁知道如何解决这个问题?
I use ABCPDF v8.1.1.1 on win7 x32 with .net 4.0. When I tried to print page from URl on https I got an error:
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)"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 "
But when I print on http everything is OK. Who know how to resolve this problem?
最满意答案
从Rup所说的关于它是一个https问题的猜测中,可能是服务器无法看到该页面。
请记住,如果这是在生产服务器上的生产e..g,它的服务器正在尝试查看页面以将其添加到pdf链,获取您尝试查看的URL并将其加载到服务器上。
如果服务器位于NAT后面,则无法看到自己的公共IP地址,在这种情况下,您需要向服务器上的hosts文件添加自定义条目。
文件位置= C:\ WINDOWS \ system32 \ drivers \ etc \ hosts
入口应该看起来像......
# Added to resolve websites locally, instead of to their public IPs 127.0.0.1 www.yourdomain.comTaking a guess from what Rup said about it being a https issue, it could be that the server cant see the page.
Remember that if this is in production e..g on a live server, its the server that is trying to view the page to add it to the pdf chain, get the URL you are trying to view and load it on the servers broswer.
If might be that if the server is behind a NAT it cant see its own public IP address in which case you need to add a custom entry to the hosts file on the server.
file location = C:\WINDOWS\system32\drivers\etc\hosts
Entry should look something like...
# Added to resolve websites locally, instead of to their public IPs 127.0.0.1 www.yourdomain.com更多推荐
发布评论