Hi everyone,
I’m running a Devolutions Server with Docker behind a reverse proxy, which works well overall and was straightforward to set up thanks to the excellent documentation.
When I try to upload custom images via RDM, it works; however, when I try to upload them persistently, this isn’t possible either via RDM or through the Devolutions Server’s web interface, and the error message “The type initializer for 'Windows.Win32.PInvokeGdiPlus' threw an exception.” is displayed.
I also checked the stack's logs using `docker compose logs` in the stack directory—but unfortunately, there weren't any further details there. Unfortunately, I haven't found any other variables or workarounds (such as a bind mount for images to mount the images).
I would really appreciate any suggestions for a solution.
Hello Tim,
Thank you for the detailed report.
The error The type initializer for 'Windows.Win32.PInvokeGdiPlus' threw an exception. comes from a Windows-only image-processing API being reached on Linux, where the underlying library does not exist.
The upload itself succeeds because that step only receives the bytes, but the "persistent" save goes through an image-processing pipeline that hits this Windows-only code path and fails before anything is written to disk.
This also explains why a bind mount for the image folder does not change the outcome, the failure happens before any file operation, so no volume or reverse-proxy setting will work around it.
To file this properly, could you please send us:
Best regards,
Patrick Ouimet