New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BitmapDecoder fails due missing WindowsCodecsExt.dll #299
Comments
@bormm - Please direct this issue to the Windows Containers forum at https://social.msdn.microsoft.com/forums/en-us/home?forum=windowscontainers. Your Dockerfile makes use of |
I've tested the mcr.microsoft.com/windows:1809 and yes, this worked and it also contains WindowsCodecsExt.dll. I use dotnet-framework-docker images because
Conclusion: In my opinion it would much more meaningful if the Microsoft dotnet-framework-docker team would work together with the Microsoft servercore image team to provide full .net framework support in the image. |
I understand your frustration with not having full access to the .NET Framework API with the Server Core image. At this point in time, it'll be necessary for you to copy the required DLLs into the image. I've communicated your issue to some folks on the Windows Containers team and here is their guidance:
|
We have a .Net Framework Application that uses the regular System.Windows.Media.Imaging.BitmapDecoder class to access image files.
This currently fails within the docker container with "System.DllNotFoundException
: 'Unable to load DLL 'WindowsCodecsExt.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)'" if access a PNG file (but not every PNG file).
I have searched for days now, but I have not found any official solution nor any official reference to WindowsCodecsExt.dll within the MSDN.
If image decoding is not fully working out of the box, how can the missing dll and whatever be added to the container? I also played with the "Server Core App Compatibility Feature" but this also seems broken in the docker container.
I attached a full runnable solution and project showing the exception that occurs at calling the BitmapDecoder.Frames property.
WindowsCodecsExtSample.zip
There are a lot of dependencies, reasons , ... why we use this class currently. For example to access multi frame images, so "use an other class to open the image" is not the solution here.
The text was updated successfully, but these errors were encountered: