We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

System.DllNotFoundException: Unable to load DLL 'libSkiaSharp': The specified module could not be found

Hi Aspose Support

We have a .NET Core 2.0 web api service using Aspose.Words that when hosted in IIS on Windows 10 converts the attached document however when we move it to our clients environment hosted in IIS on Server 2008 R2 we are experiencing the following error:

System.TypeInitializationException: The type initializer for ‘SkiaSharp.SKManagedStream’ threw an exception. —> System.DllNotFoundException: Unable to load DLL ‘libSkiaSharp’: The specified module could not be found. (Exception from HRESULT: 0x8007007E) at SkiaSharp.SkiaApi.sk_managedstream_set_delegates(IntPtr pRead, IntPtr pPeek, IntPtr pIsAtEnd, IntPtr pRewind, IntPtr pGetPosition, IntPtr pSeek, IntPtr pMove, IntPtr pGetLength, IntPtr pCreateNew, IntPtr pDestroy) at SkiaSharp.SKManagedStream…cctor() — End of inner exception stack trace — at SkiaSharp.SKStream.WrapManagedStream(Stream stream) at SkiaSharp.SKBitmap.Decode(Stream stream) at .1 at .[1](Stream [1], SKRectI

If we remove the image from the file then it will convert. I have noted some other forum posts mentioning issues loading “libSkiaSharp” however there are no answers or work arounds offered…

ImageOnly.zip (41.0 KB)

Hi

We have managed to resolve this issue. If it occurs for anyone else, our fix was to install the VS 2017 C++ x64 redistributable on our target environment.

1 Like

@james.sales,

Thanks for your inquiry. It is nice to hear from you that your problem has been solved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

@james.sales,

We are experiencing the same issue. (Unable to load DLL ‘libSkiaSharp’: The specified module could not be found. (Exception from HRESULT: 0x8007007E))
After install VS 2017 C++ x64 redistributable on our deployment environment then resolve this issue.

Thank you somuch.

@cyginfo

We always appreciate positive feedback from our customers. Please let us know if you have any query about Aspose.Words.