Invariante Kulturproblem beim Ausführen der Dotnet 6 -Anwendung in einem Docker -ContainerC#

Ein Treffpunkt für C#-Programmierer
Anonymous
 Invariante Kulturproblem beim Ausführen der Dotnet 6 -Anwendung in einem Docker -Container

Post by Anonymous »

Ich habe die DOTNE -Anwendung von Dotnet Core 3.1 auf DOTNET upgradiert 6. Nach dem Upgrade erhalte ich diesen Fehler: < /p>

Code: Select all

Microsoft.Azure.Storage.StorageException: Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name')
en-US is an invalid culture identifier.
---> System.Globalization.CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name')
Um dies zu beheben, fand ich heraus, dass wir versuchen können, die InvariantGlobalization als false im CSProj unter und im Docker festzulegen. Aber wenn ich diese Änderungen vornehme und die Anwendung wiederholeProcess terminated. Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.
at System.Environment.FailFast(System.String)
< /code>
und um diese Vorschläge zu beheben, sind nur umgekehrt, was ich getan habe, um die invariante Kultur zu beheben (1. Problem). Könnte mir jemand bitte helfen. /Blockquote>
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine3.14
LABEL pipelineName="somedummyapplication" \
pipelineKey="DSENJRNF" \
offeringKey="UQWHCLRA"
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
RUN echo 'http://dl-3.alpinelinux.org/alpine/v3.16/main' >> /etc/apk/repositories
RUN apk upgrade && apk add sqlite && apk add krb5
EXPOSE 5000
ENV ASPNETCORE_URLS=http://*:5000
WORKDIR /app
COPY . /app
USER guest
ENTRYPOINT ["dotnet", "abc.somedummyapplication.dll"]
< /code>
Ich habe diese Links bereits überprüft und versucht, das Problem zu beheben, aber wie ich bereits sagte, wenn ich mich auf ein anderes Problem einlöste, wird ein .NET 6 -Projekt in Docker Globalisierung ausgeführt. . Es konnte kein gültiges ICU -Paket finden, das auf dem System in ASP.net Core 3 - Ubuntu

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post