wkhtmltopdf 崩溃,异常 0xc0000005

wkhtmltopdf crash with exception 0xc0000005

问题

I 运行 asp.net with wkhtmltopdf on remote machine. If application is browsed localy pdf 被渲染。如果远程浏览应用程序 wkhtmltopdf 崩溃并出现异常 0xc0000005。

问如何解决?

解决方案

最初看到wkhtmltopdf output - that error probably is not seen if you run command localy through CLI因为请求路径不同:

Warning: Failed to load http://{{remote_address}}:{{port}}/

remote_address 是问题所在 - 您已正确配置绑定地址到 IIS,但本地计算机无法识别来自 DNS 的请求路径。

该问题的解决方案绑定到 "app binded address" 例如。 public_ipremote_addresshost file:

{{public_ip}}  {{remote_addr}}

之后应用程序将知道此路径和来源。