c# - FormatConvertedBitmap - No imaging component suitable to complete this operation was found error -
i'm using code below converting rgb tif file cmyk format. works great on local development machine(windows 7) throwing error in our windows 2003 production server.
error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [notsupportedexception: no imaging component suitable complete operation found.] system.windows.media.imaging.formatconvertedbitmap.finalizecreation() +376 system.windows.media.imaging.formatconvertedbitmap.endinit() +158 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
below code i'm using: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ formatconvertedbitmap newformatedbitmapsource = new formatconvertedbitmap(); newformatedbitmapsource.begininit(); newformatedbitmapsource.source = mybitmapsource; newformatedbitmapsource.destinationformat = pixelformats.cmyk32; newformatedbitmapsource.endinit(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i've done research , people suggested check windowscodecs.dll version. did , found out in dev machine version 6.1.7600 while server version 6.0.5840. tried copying newer version server , registering via regsvr32 i'm getting "entry point dllregisterserver not found". tried searching windowscodecs 6.1 installer cannot find any.
how can update windowscodecs.dll in server? heading in right solution issue? input appreciated.
thanks
another possible resolution is:
if client running windows xp , using icon in wpf window. there icon shows in windows title bar. remove icon , icons in program windows , may resolve error.
spent hours on 1 more once, , had icon in window. note: other images work inside program not .ico in window title.
Comments
Post a Comment