I ported it to .NET Core 8, I encountered an error

My program, which was originally developed using .NET 4.8, runs perfectly. However, when I ported it to .NET Core 8, I encountered an error(The type initializer for ’ ’ threw an exception by try catch) when attempting to open a file with this statement(docs = new Aspose.Words.Document(opd.FileName);). What could be the reason for this?

@lovecomputer Please make sure you refer Aspose.Words using NuGet, so the correct package is used in your application. If the problem still persists, please create a simple console application that will allow us to reproduce the problem. We will check the issue and provide you more information.
We have tested Aspose.Words with .NET8 earlier and everything works as expected.

thanks!Successfully resolved, not the cause of Aspose, is the reason for the package release, the title can be removed

1 Like