Error when upgrading Aspose.Task to version 23.4.0: cannot load type 'System.Drawing.Bitmap', Aspose.Drawing, Version=22.11.0.0

When upgrading Aspose.Task to version 23.4.0, the application can no longer be run.
We use the following Aspose-Libraries:

  • Aspose.Cells 23.4.0
  • Aspose.PDF 23.4.0
  • Aspose.Tasks 23.4.0
  • Aspose.Words 23.4.0

When setting the license we recieve the following error message:
image.png (6.5 KB)

image.png (11.4 KB)

@rbpm,
Aspose.Tasks 23.4 targeting .NET 6.0 now uses Aspose.Drawing package.
(See Aspose.Tasks for .NET 23.4 Release Notes).

You can fix it either by adding package reference ‘Aspose.Drawing’ v. 22.11 to your application or by referencing Aspose.Tasks v. 23.4 binaries which target version of .NET lower than .NET 6 (netstandard20 of NET 461).

Version 22.11 is an old version. I don’t think it makes sense to use old versions of a library. It should be possible to use the latest version. But actually it isn’t.

@rbpm,
We are going to update the dependency in the next release.

1 Like