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

Free Support Forum - aspose.com

TypeInitializationException: The type initializer for ‘SkiaSharp.SKColorSpace’ threw an exception

When use Aspose.Word. sometimes it throws exception, any idea?
below is the exception:

Inner Exception 1:
TypeInitializationException: The type initializer for ‘SkiaSharp.SKColorSpace’ threw an exception.

Inner Exception 2:
DllNotFoundException: Unable to load DLL ‘libSkiaSharp’ or one of its dependencies: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

@samsunvista,

It seems that you are facing this issue because Aspose.Words for .NET is not properly installed on your end. Please remove all Aspose.Words related references from your project, clean it and then reinstall 20.5 version of Aspose.Words for .NET API via NuGet.

If you still see this problem, please share your working environment (e.g. operating system, .NET version) here for further testing.

A post was split to a new topic: SkiaSharp: Unable to load DLL ‘libSkiaSharp’ or one of its dependencies