I´m porting a .net 4.6.2 code to a .net Core project, that calls a SOAP service. In the new code I´m using C# (because of some config reasons I just can´t r
I had the same problem with There was an error reflecting 'login'
only in a unix (Docker and wsl2) environment.
On Windows there was no problem at all.
I tried to create the connected service via the dotnet-svcutil
(version 2.0.1), but this didn't solve the issue.
I finally managed to find the root the my problem.
I published my application with the following dotnet command:
dotnet publish "myapp/myapp.csproj" -c Release -r linux-x64 --self-contained true -p:PublishTrimmed=true -p:ReadyToRun=true -p:ReadyToRunShowWarnings=true -o publish
When I removed the attribute -p:PublishTrimmed=true
it finally worked both under wsl2 and in my docker environment.