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.

Any progress?


We are sorry but we cannot share any ETA on the issue. This issue depends upon Aspose.Drawing APIs, so this needs to be sorted out in the library first. We are waiting for now to get this issue sorted out. Once we make any progress or have any other updates (available), we will update you here.

We are sorry for any inconvenience caused!

Aspose.Drawing seems to be done now? Just for Aspose Tasks working. Maybe time for some OSX love?


Not done so far. Still there are some issues which are not resolved yet. In short, we have not switched to Aspose.Drawing yet.

Once we have an update on it, we will let you know.

We are sorry for any inconvenience caused!

1 Like