Hi Team,
Thread is not working for SPIRE PDF after deploying in azure. It is working perfect in Local environment.
I am getting below issue please help me out on this issue.
Below is code what I am using
PdfDocument doc = new PdfDocument();
PdfHtmlLayoutFormat htmlLayoutFormat = new PdfHtmlLayoutFormat();
htmlLayoutFormat.IsWaiting = true;
htmlLayoutFormat.LoadHtmlTimeout = 30000;
Thread thread = new Thread(() =>
{ doc.LoadFromHTML(htmlCode, true, setting, htmlLayoutFormat); });
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();
I am getting error while calling doc.LoadFromHTML(htmlCode, true, setting, htmlLayoutFormat)