Hi!
We are getting an error when using Aspose Word with Aspose cloud.
We are using saveAs endpoint (https://api.aspose.cloud/v4.0/words/online/put/saveAs) to convert Word document to HTML.
The error reads:
Method not found: ‘SkiaSharp.SKImageFilter SkiaSharp.SKImageFilter.CreateBlur(Single, Single)’.
Thank you for your help!
@futurarazvoj
The error you are encountering, specifically “Method not found: ‘SkiaSharp.SKImageFilter SkiaSharp.SKImageFilter.CreateBlur(Single, Single)’,” suggests that there may be an issue with the version of the SkiaSharp library being used in your application. This method is part of the SkiaSharp library, which is a dependency for Aspose.Words when working with graphics.
To resolve this issue, consider the following steps:
-
Check SkiaSharp Version: Ensure that you are using a compatible version of SkiaSharp. The error indicates that the method might not be available in the version you are currently using. You may need to update to a newer version where this method is included.
-
Use .NET Framework Base Image: If you are running your application in a Windows container, it is recommended to use the .NET Framework base image with the .NET Framework version of Aspose.Words, as this version does not depend on SkiaSharp. This can help avoid compatibility issues.
-
Docker Considerations: If you are deploying your application in a Docker container, ensure that you are using the appropriate images that support Aspose.Words and its dependencies. The .NET Core images are generally smaller and more efficient for microservices, but make sure they include the necessary native assets for SkiaSharp.
-
Consult Documentation: For detailed guidance on running Aspose.Words in Docker and managing dependencies, refer to the official Aspose documentation. It provides insights on setting up your environment correctly to avoid such issues.
If you continue to experience problems after checking these points, please provide additional details about your setup, including the versions of Aspose.Words and SkiaSharp you are using.
Sources:
[1]: How to Run Aspose.Words in Docker
Thank you bot
I have read all other forum posts regarding this error.
All are, I image, not applicable to this post, as we are not using self-hosted version of Asepose Word, but a cloud version.