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

Free Support Forum - aspose.com

Aspose.pdf throws "Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0" Exception

Hi,
When using the Aspose.pdf dll to convert html stream to pdf within .net core 3.1 solution, it throws an exception “Aspose.PDF: Could not load file or assembly ‘System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’. The system cannot find the file specified.”
Is the dll not compatible with .net core? Does it have a dependency on the Windows Forms dll?

@NDechamma

Would you please try installing Aspose.PDF for .NET via NuGet Package Manager. In case issue still persists, please share your sample application with us. We will test it in our environment and address the issue accordingly.

Thank you. Installing using NuGet Package Manager solved the issue.

1 Like