Quantcast
Channel: Xamarin.Mac — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 1429

Exception "This image format is not supported" when run from .app-file but not in Xamarin Studio

$
0
0

Hi there,

I´m using Texture2D.Fromstream to load a png-file to a texture which works perfectly when I run it from within Xamarin Studio. If I try to start the app-file in the debug-(or release)-directory it crashes with the exception
This image format is not supported ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception ---> System.DLLNotFoundException
I´ve seen that using System.Drawing can cause problems but as far as I understood it wouldn´t even work in Xamarin Studio.
I figured that the linker might not link the correct libs to the app file but there aren´t any settings in XS which I can use to change anything.
Maybe somebody out there has an idea what´s going wrong?

Thanks,

Benjamin


Viewing all articles
Browse latest Browse all 1429

Trending Articles