We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

The process was terminated due to an unhandled exception. Syncfusion.Pdf.NETStandard IIS


we are using Syncfusion.Pdf.NETStandard ( 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:
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);
            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.


5 Replies

DB Dilli Babu Nandha Gopal Syncfusion Team December 19, 2018 12:34 PM UTC

Hi David, 

Greetings from Syncfusion. 

From the given details, we have found that the exception occurs only in server. So, could you please provide us the following details from your end: 
  1. Essential studio product version which currently installed on the production environment (server machine). 
  2. Visual Studio version. 
  3. Details about the Operation system in server. 
  4. Input Word document which used at your side. 
  5. Complete stack trace details of the reported exception. 
  6. Please confirm us whether you are using ASP.NET Core or any other application to publish in server. 

Based on the above details, we will setup a similar environment and will try to reproduce the exact problem at our side. 

Note: If the above details are confidential, then you can also mail the details to our Syncfusion support through support@syncfusion.com with this forum ID in subject line. 

Dilli babu 

LA LastCodeDE December 19, 2018 01:32 PM UTC

Hello Dilli babu,

thank you for your answer. I hope I can help with some details:

1. This are our dependencies on server side.
(see attachment))

2. My installed visual studio version is 15.8.4 (2017) but I think this information is not important because on my computer with the same document the convert of doc to pdf works.

3. The server with the issue is an windows server 2012 R2.

4. Unfortunately I can not publish the document because It's not mine.

5. How can I complete the stack trace? The application crashed (published version no debugging possible). Try catch doesn't work. The exception is from the windows event viewer.

6. The proejct is a dot net core 2.1 project. The frontend is in angular 7 cli.


Attachment: sync_552f0159.zip

DB Dilli Babu Nandha Gopal Syncfusion Team December 20, 2018 04:23 PM UTC

Hi David, 

From the given details and screenshot, we suspect the problem might be due to the NuGet packages conflicts (mismatch in versions of all NuGet packages) which referred in your application. Also, we have fixed similar kind of problem at our end and it is included in our latest 2018 Volume 4 main release (   
We suggest you to remove existing NuGet packages in your application and kindly install the same version ( of NuGet packages in your application from nuget.org. Could you please confirm us whether the reported problem resolved in our latest version? 

Dilli babu. 

DR David Romero July 15, 2019 06:55 AM UTC

I'm having the same issue, but only when running my APP on Windows Server 2012 R2. It works fine on Windows 10.

VA Vijayasurya Anandhan Syncfusion Team July 15, 2019 10:03 AM UTC

1.   Hi David,

Thank for your update.

We suggest you to use below steps to overcome the reported issue:

1. Check whether production machine have proper .NET Core runtime installed.

2. Check Visual C++ Redistributable for Visual Studio 2015 installed in the production which is need to run SkiaSharp.

Download link:


Download link for 2017 VC++:
Please let us know if you have any queries.

Vijayasurya A


Live Chat Icon For mobile
Up arrow icon