Subject: Error in libgdiplus

From: Zvonimir Kunetić (Span)<[email-masked]>
Date: Fri, 29 Jan 2021 07:53:47 +0000

Hi,

We are using your library libgdiplus, and from yesterday we get following error:
Message: The type initializer for 'Gdip' threw an exception.

Docker file that we are using is here:

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1.0-alpine AS runtime

# add globalization support
RUN apk add --no-cache icu-libs

# install System.Drawing native dependencies
RUN apk add libgdiplus --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --allow-untrusted

ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

WORKDIR /app
COPY . .

EXPOSE 4200

Please can you help us.

Best regards,
Zvonimir