ABP Framework version: v5.1.4
UI type: Blazor Wasm
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): no
Exception message and stack trace: Cannot use file stream for [/app/bin/Debug/net6.0/Docker.Blazor.deps.json]: No such file or directory A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/app/bin/Debug/net6.0/'. Failed to run as a self-contained app.
Steps to reproduce the issue:" Create dockerfile and docker-compose
DOCKERFILE :
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build WORKDIR /src COPY ["NuGet.Config", "."] COPY ["src/Docker.Blazor/Docker.Blazor.csproj", "src/Docker.Blazor/"] COPY ["src/Docker.HttpApi.Client/Docker.HttpApi.Client.csproj", "src/Docker.HttpApi.Client/"] COPY ["src/Docker.Application.Contracts/Docker.Application.Contracts.csproj", "src/Docker.Application.Contracts/"] COPY ["src/Docker.Domain.Shared/Docker.Domain.Shared.csproj", "src/Docker.Domain.Shared/"] RUN dotnet restore "src/Docker.Blazor/Docker.Blazor.csproj" COPY . . WORKDIR "/src/src/Docker.Blazor" RUN dotnet build "Docker.Blazor.csproj" -c Release -o /app/build
FROM build AS publish RUN dotnet publish "Docker.Blazor.csproj" -c Release -o /app/publish
FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "Docker.Blazor.dll"]
docker-compose :
version: '3.4'
services: docker.blazor: image: ${DOCKER_REGISTRY-}dockerblazor build: context: . dockerfile: src/Docker.Blazor/Dockerfile
In fact it works half the time, maybe there is an asynchronous problem?
I need to overdrive only the NormalizeUserNameAsync method ?
Done
in the sample i switchNative.LdapVersion.LDAP_VERSION3
to this Native.LdapVersion.LDAP_VERSION
But no in my abp project
ldapConnection.Connect(server, serverPort, Native.LdapSchema.LDAP, Native.LdapVersion.LDAP_VERSION2);
var UserfName = $"cn={adminUserName},{baseDc}";
await ldapConnection.BindAsync(Native.LdapAuthType.Negotiate, new LdapCredential
Do you know where can i switch Native.LdapAuthType.Negotiate and Native.LdapVersion.LDAP_VERSION2 ?
I download the Volo.Account.Pro module but i dont't find where the ldap configuration is made.
I will also need it. I think that's the biggest difficulty at the moment. The development is super well explained but for the deployment it is more complicated.