I know this question was asked but nobody answer it.
I'm building web API on Core 2.2 with JWT token bearer. In token request I added check if user exist on our LDAP.
All working properly on IIS and console app but when I run with docker I'm getting:
"Unable to load DLL 'activeds.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
If user exist all working fine but when user not exist Im checking user status with:
UserPrincipal oUserPrincipal = UserPrincipal.FindByIdentity(oPrincipalContext, sUserName);
Which causing error above.
Im new to docker. I have tried to play with images:
mcr.microsoft.com/dotnet/core/sdk mcr.microsoft.com/dotnet/core/aspnet microsoft/aspnetcore-build
In all cases the same result
I have exposed LDAP ports in docker file (or I think I exposed) and still getting the same error.
My current dockerfile:
FROM mcr.microsoft.com/dotnet/core/sdk AS base WORKDIR /app EXPOSE 80 EXPOSE 443 EXPOSE 383 EXPOSE 636 FROM mcr.microsoft.com/dotnet/core/sdk AS build WORKDIR /src COPY ["USITWebApi/USITWebApi.csproj", "USITWebApi/"] RUN dotnet restore "USITWebApi/USITWebApi.csproj" COPY . . WORKDIR "/src/USITWebApi" RUN dotnet build "USITWebApi.csproj" -c Release -o /app FROM build AS publish RUN dotnet publish "USITWebApi.csproj" -c Release -o /app FROM base AS final WORKDIR /app COPY --from=publish /app . ENTRYPOINT ["dotnet", "USITWebApi.dll"]
I'm using Windows containers.
I spent three days trying to solve this. If you have any ideas please help me solve this issue.
User contributions licensed under CC BY-SA 3.0