We have a Windows Server instance where we deploy multiple sites deployed to the same IIS server and they all have code calling HtmlConverter to covert HTML to PDF. However, we see that once one of the sites called HtmlConverter, other sites cannot call it.
Is it a known issue that multiple sites with dedicated app pools on the same IIS server cannot use HtmlConverter due to Chromium process being locked by site that used it first?
On our production environment where we only have one site and one app pool per IIS server we've never experienced such issues.
We use ceTe.DynamicPDF.HtmlConverter.NET 1.8.0
We saw different exceptions happening on other sites on this server, here are few examples:
System.ComponentModel.Win32Exception
An error occurred trying to start process 'C:\WINDOWS\TEMP\dpdfHtmlConverter_v1.8.0.47320\Subprocess_84_0_4123_00\BrowserProc.exe' with working directory 'D:\features\ease-feature-8084'. Access is denied.
bool Process.StartWithCreateProcess(ProcessStartInfo startInfo)
bool Process.Start()
void Converter.#bmh()
System.AggregateException
One or more errors occurred. (The requested address is not valid in its context. (127.0.0.1:0))
void #nKg.#ish()
async Task<#Wrh> Converter.#omh(CancellationToken #Mxf, #Prh #mmh)
async Task<byte[]> Converter.#fmh(string #hmh, Uri #imh, bool #jmh, ConversionOptions #gmh)
System.UnauthorizedAccessException
Access to the path 'dpdfA449B8B216C4464EBAFA0B5BE3452F32' is denied.
void Mutex.CreateMutexCore(bool initiallyOwned, string name, out bool createdNew)
void Converter.#6lh()
void <>c.#csh()
async Task<byte[]> Converter.#fmh(string #hmh, Uri #imh, bool #jmh, ConversionOptions #gmh)
async Task<byte[]> #eKg.#Xrh()