Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF application shows "Image format is unrecognized "

Tags:

wpf

I have a WPF application which runs fine on Windows 7 OS. But the same app crashes on a particular few Windows XP machines.

It runs fine on few windows XP machine. but on a few XP machine it fails to start.

ERROR - Image format is unrecognized.

I know this question has been asked few times. but my problem is i am still not able to figure out as to how to resolve this.

Should I change the .ico used for the application ..

like image 623
Sandepku Avatar asked Sep 12 '12 09:09

Sandepku


1 Answers

Unfortunately, simply removing the 256x256 application isn't the greatest solution when you want to support the large icon size for Windows Vista, 7, 8 and forward.

Another way to solve this problem ... is to not compress the 256x256 image in the icon. See this forum thread for more info.

How does one do that? Well, most icon utilities will have an option for this (as this is a common problem). I use IcoFX and below you can see the option (highlighted in red) I needed to clear.

IcoFX Screenshot

like image 151
cplotts Avatar answered Sep 18 '22 08:09

cplotts