I have licensed version of Aspose.Word library.I am using Aspose library in .net core application to generate word/pdf document. I am getting error: “The type initializer for ‘SkiaSharp.SKManagedStream’ threw an exception.” while trying to generate document. Application is deployed in Azure cloud platform.
I have few questions:
Will our license support the latest version of Aspose Words .Net or not?
Is Aspose.Words library is compatible to .net 5 based applications?
You can check the expiration date of your license file by opening it in any text editor and finding SubscriptionExpiry tag. It will look like this:
<SubscriptionExpiry>20210930</SubscriptionExpiry>
It means that you can free upgrade to version of Aspose product published before 09/30/2021.
Yes Aspose.Words is compatible with .NET 5. .NET 5 implements .NET Standard 2.0 and Aspose.Words provides version for .NET Standard 2.0.
Regarding the error you get, it seems SkiaSharp native assets are not deployed properly. Please read the following article and make sure SkiaSharp native assets are deployed properly.
We have deployed out .net 5 application in azure app service and trying to use aspose library to generate document with images. We are not using azure functions.The error is not showing in Azure Functions, but in the Azure app service (in the .net core web API project). Please let me know if there is any fix available for the app service.
@pgroup The reason of the problem is definitely the same - not properly deployed SkiaSharp native assets. What is your deployment target Windows or Linux? If your deployment target is Linux, have you tried adding SkiaSharp.NativeAssets.Linux.NoDependencies ?
I want to use latest version of aspose.words in application.
Please verify if our license is going to work with Aspose latest version 20.11 or not.
If not, then what is the latest aspose.words version we can use?
@pgroup You can check expiration date of your license yourself 1. by opening it in any text editor and finding SubscriptionExpiry tag. It will look like this:
<SubscriptionExpiry>20210930</SubscriptionExpiry>
It means that you can free upgrade to version of Aspose product published before 09/30/2021.
Or we can check your license for you. For this please post your license file via private message. In order to send a private message with attachment, please click on my name and find “Message” button.
Our subscription was expired on 03/08/2019. We are using version 19.3 in our .net 5 project.
When we generate word document , intermittently we are getting message “Evaluation only.Created with Aspose.Words.Copyright 2003-2019 Aspose Pty Ltd.” and with bottlemark as “ASPOSE”.
Please let us know why this message is appearing and how to fix this?
@pgroup Aspose.Words 19.3.0 was released on 3/4/2019 so your license should work fine with this version. Please make sure the license is set before instantiating Document object. Follow the link to learn how to set the license properly.