Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed May 08, 2019 10:48 am

First of all love your product :) used it in few desktop projects...

Now I’m trying to use it in Asp.Net Core 2.2 app

When I test it locally on dev pc (windows) windows everything works, but on productions on Linux (CentOS 7.x) it does not...

So, if you get message: Unable to load DLL 'libgdiplus'

You must install libgdiplus
Code: Select all
yum install -y libgdiplus

Then symlink it cose your app is looking for DLL file
Code: Select all
cd /usr/lib
ln -s libgdiplus.so gdiplus.dll


And I had and issue with: Unable to load DLL 'libdl'
So also symlink
Code: Select all
ln -s /lib64/libdl.so.2 /lib64/libdl.so


Now everything should work

This is primary an issue with System.Drawing dependency... Hope you can add this to knowledgebase, so it is available to all (did not see it in any help section or forums)

andrejskvorc
 
Posts: 1
Joined: Wed Jul 12, 2017 11:25 am

Thu May 09, 2019 6:40 am

Hello,

Thank you so much for sharing this solution.
Yes, our Spire.XLS .Net Core uses System.Drawing.Common which depends on Libgdiplus library. Before using netstandard2.0 of Spire.XLS, it need to install the Libgdiplus library. Thank you so much for sharing your useful experience on the post! :D

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.XLS