You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to open a particular png image using BitmapImage class.
I can successfully read the image locally or with base docker image mcr.microsoft.com/windows:1809.
However, when I use mcr.microsoft.com/dotnet/framework/runtime:4.7.2-windowsservercore-ltsc2019,
I get this exception
System.NotSupportedException: No imaging component suitable to complete this operation was found. ---> System.Runtime.InteropServices.COMException: The component cannot be found. (Exception from HRESULT: 0x88982F50)
--- End of inner exception stack trace ---
at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
Per #299, added WindowsCodecExt.dll in 4.7.2 image.
Now, the exception I get it this
System.ArgumentException: Value does not fall within the expected range. ---> System.ArgumentException: Value does not fall within the expected range.
--- End of inner exception stack trace ---
at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
Wondering, if there is any other dll related to imaging available in mcr.microsoft.com/windows:1809 but is missing in 4.7.2-windowsservercore-ltsc2019.
Any inputs on this will be appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Trying to open a particular png image using BitmapImage class.
I can successfully read the image locally or with base docker image mcr.microsoft.com/windows:1809.
However, when I use mcr.microsoft.com/dotnet/framework/runtime:4.7.2-windowsservercore-ltsc2019,
I get this exception
System.NotSupportedException: No imaging component suitable to complete this operation was found. ---> System.Runtime.InteropServices.COMException: The component cannot be found. (Exception from HRESULT: 0x88982F50)
--- End of inner exception stack trace ---
at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
Per #299, added WindowsCodecExt.dll in 4.7.2 image.
Now, the exception I get it this
System.ArgumentException: Value does not fall within the expected range. ---> System.ArgumentException: Value does not fall within the expected range.
--- End of inner exception stack trace ---
at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
Wondering, if there is any other dll related to imaging available in mcr.microsoft.com/windows:1809 but is missing in 4.7.2-windowsservercore-ltsc2019.
Any inputs on this will be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions