Bruno
Bruno

Reputation: 7191

wkhtmltopdf crash with exception 0xc0000005

PROBLEM

I run asp.net with wkhtmltopdf on remote machine. If application is browsed localy pdf is rendered. If app is browsed remotely wkhtmltopdf crash with exception 0xc0000005.

Q how it can be fixed?

Upvotes: 0

Views: 686

Answers (1)

Bruno
Bruno

Reputation: 7191

SOLUTION

At first see wkhtmltopdf output - that error probably is not seen if you run command localy through CLI because of different request path:

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

And that remote_address is the problem - you have good configured binding address to IIS but local machine don't recognize request path from DNS.

Solution for that issue is bind to "app binded address" eg. public_ip to remote_address into host file:

{{public_ip}}  {{remote_addr}}

After that application will knows this path and sources.

Upvotes: 1

Related Questions