The type initializer for 'Aspose.CAD.Image' threw an exception

System.Memory version:4.5.5

System.Text.Json version 7.0.2

They are installed from nuget

.net framework 4.8

Again, maybe a short session in zoom/teams?

1510_5331186793_mail.jpg

image001.png (755 Bytes)

asset20_ce831691-7af1-4a28-8578-d1a350867362.png (2.29 KB)

whatsapp_logo_1-removebg-preview1_e8eb4d73-5f73-4224-89a9-ca4c8a1755de.png (15 KB)

@yoniDekel,
Iā€™m sorry, live communication is not convenient for me.
Please try to use assembly redirect to solve these errors. Here is sample app.config file
App.zip (499 Bytes) that redirects old System.Memory version to 4.0.1.2 (corresponds to 4.5.5) and System.Text.Json to 7.0.0.2. You can try to apply this file and try to check LoaderException one more time, probably, you need to tune version and/or some other assemblies.

Perfect ā€“ that works

Thanks alot

1510_5331186793_mail.jpg

image001.png (755 Bytes)

asset20_ce831691-7af1-4a28-8578-d1a350867362.png (2.29 KB)

whatsapp_logo_1-removebg-preview1_e8eb4d73-5f73-4224-89a9-ca4c8a1755de.png (15 KB)

1 Like

@yoniDekel,
Happy to hear that problem is resolved :slight_smile: