We tried the following:
- Added package Reference “SkiaSharp.NativeAssets.Linux” Version=“1.68.0”.
- Upgraded Aspose.Words to version “19.6.0”.
- Manually copied libSkiaSharp.so and libHarfBuzzSharp.so in the app directory.
Still the issue remains unresolved. Please note this could be an issue with Web based applications (ASP.Net Core).
Below is the stack trace of the error:
The type initializer for ’ ’ threw an exception.
at …ctor(PointF , SizeF , Byte[] , )
at .(Shape , , )
at .(Shape , , , )
at .( , , , Boolean)
at .( , , Boolean )
at .( , , Boolean )
at .( , Boolean )
at Aspose.Words.Rendering.ShapeRenderer…ctor(ShapeBase shape)
at .(Shape , )
at .(ShapeBase , )
at .(ShapeBase )
at .(ShapeBase )
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at .(Section )
at . ()
at .()
at . )
at )
at Aspose.Words.Document. , SaveOptions )
at Aspose.Words.Document.(Stream , String , SaveOptions )