HTML2PDF windows server error

Product: HTML2PDF

HTML2PDF: latest version from website
SDK version: 9.2.0.79374

I evaluating a demo version of PDFTron to use for PDF/A conversion and HTML2PDF operations and everything seems to be working fine when running it locally.
However when I set it up as an IIS webservice on a test server to fully test it I get the following error when trying to convert a HTML string to PDF:

[0322/130658.903:FATAL:headless_content_main_delegate.cc(313)] Check failed: success. 
Backtrace:
	CrashForExceptionInNonABICompliantCodeRange [0x00007FF68569F832+9597634]
	CrashForExceptionInNonABICompliantCodeRange [0x00007FF6855E0252+8813794]
	CrashForExceptionInNonABICompliantCodeRange [0x00007FF6855F7F25+8911285]
	CrashForExceptionInNonABICompliantCodeRange [0x00007FF6855F90C0+8915792]
	IsSandboxedProcess [0x00007FF6860E2B67+2398007]
	IsSandboxedProcess [0x00007FF6860E2E22+2398706]
	Ordinal0 [0x00007FF68403FE6F+31522415]
	Ordinal0 [0x00007FF68403E8E6+31516902]
	Ordinal0 [0x00007FF68403ED7C+31518076]
	CrashForExceptionInNonABICompliantCodeRange [0x00007FF6855CA6FE+8724878]
	CrashForExceptionInNonABICompliantCodeRange [0x00007FF6855CA57F+8724495]
	CrashForExceptionInNonABICompliantCodeRange [0x00007FF6855CA2B8+8723784]
	Ordinal0 [0x00007FF682231032+4146]
	GetHandleVerifier [0x00007FF68A3F3478+70044616]
	BaseThreadInitThunk [0x00007FF8A1597974+20]
	RtlUserThreadStart [0x00007FF8A1B5A2F1+33]

Exit code: 0X80000003
Missing output file C:/windows/TEMP/pdftron/Trn-10896-1647954418-b620c368-7854-4100-b225-911ee6b2763e|

When trying to convert the exact same HTML string locally in a unittest it works perfectly fine!

When trying to run it in a docker environment the HTML conversion also fails. But that is a seperate issue which I have described in this forum post:

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

HTML2PDF: latest version from website

Do you recall when you downloaded?
The official download was patched March 17th, so if you are unsure please try the latest again.

I am not unsure. I downloaded from the website yesterday…

The team confirmed that the latest HTML2PDF module for Windows can run under IIS.

However, the current module does need to write to the same folder that the html2pdf_chromium.dll is in. I suspect you are hitting a write permission rejection due the often strict settings in IIS.

You could use something like ProcMon (SysInternal ProcessMonitor) to see if any file write attempts are failing. Or just relax your security permissions until the error goes away.