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

Free Support Forum - aspose.com

AsposeNote: TypeInitializationException:The type initializer for 'Gdip' threw an exception

I’m building an application that runs on both windows and macos.

This application converts .one to bmp.

On Windows (10) it works but on MacOs I get:

TypeInitializationException:The type initializer for ‘Gdip’ threw an exception.

We’re using the latest AsposeNote and the app is built in .net 6.

See code example:

AsposeNote.zip (279.6 KB)


Thanks for the sample.

We have logged a ticket with an id “NOTENET-5576” for your issue. We will investigate your issue in details. You will be notified when there is an update or the issue is resolved.

Apparently, the issue is related to missing System.Drawing library on .NET6 for non-Windows platforms. To render bitmaps, Aspose.Note uses System.Drawing APIs. As per Microsoft, On non-Windows operating systems, unless you set a runtime configuration switch, a TypeInitializationException exception is thrown with PlatformNotSupportedException as the inner exception. You may try the workaround, if it fixes the issue.

The workaround doesn’t work.


Probably this is due to the fact that you are rendering one note file to bitmap (which requires drawing APIs), so it won’t work. Anyways, let us evaluate your issue in details so we could update you on it.

Any progress/ETA?


We are sorry but there is no update on your issue. Hopefully we will update you in the next few days on the issue.