1
Vote

NReco.PdfGenerator.WkHtmlToPdfException: Exit with code 1 due to network error: ConnectionRefusedError (exit code: 1)

description

We are getting the below error while using Nreco.pdfgenerator.dll : Cannot generate PDF: Exit with code 1 due to network error: ConnectionRefusedError (exit code: 1) System.Exception: Cannot generate PDF: Exit with code 1 due to network error: ConnectionRefusedError (exit code: 1) ---> NReco.PdfGenerator.WkHtmlToPdfException: Exit with code 1 due to network error: ConnectionRefusedError (exit code: 1)

That code is working fine on local system, but at client end it is showing the above error.

comments

fedorchenko wrote Mar 31, 2016 at 2:54 PM

This is wkhtmltopdf error that appears when web page or referenced resource (css/js/image) cannot be accessed for some reason.