Hello,
we are using Syncfusion.Pdf.NETStandard (16.3.0.30) in our project.
The frontend is angular the backend C#. The exception comes on backend.
We receive the fallowing exception in a published version on internet information server:
Event-Viewer
CoreCLR Version: 4.6.26725.6
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentNullException: Value cannot be null.
at System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken)
at SkiaSharp.SKObject.Dispose(Boolean disposing)
at SkiaSharp.SKBitmap.Dispose(Boolean disposing)
at SkiaSharp.SKNativeObject.Finalize()
This is our function to convert a word document to an pdf document.
public byte[] WordToPDF(byte[] WordArray)
{
MemoryStream result = new MemoryStream();
DocIORenderer render = new DocIORenderer();
MemoryStream stream = new MemoryStream(WordArray, 0, WordArray.Length);
PdfDocument pdfDocument = render.ConvertToPDF(stream);
render.Dispose();
pdfDocument.Save(result);
pdfDocument.Close();
pdfDocument.Dispose();
return result.ToArray();
}
In visual studio (IIS express) and on my iis I can't reproduce the exception with the same word document. The exception comes only on one server. Unfortunately the convert has to work on this server.
The server has no installed word application. I don't know if this is important.
Regards
LastCodeDE