I am unable to run a docker container with a .NET 5 application that uses Hangfire. Locally it’s all good. But then I build the image with Azure pipelines, save in Azure Container Registry and try to run it locally. The exception I get is: Starting app for environment Production crit: Microsoft.AspNetCore.Hosting.Diagnostics Application startup exception ..
I am having the same issue. I suspect it’s something to do with being behind a proxy. My Dockerfile is: FROM microsoft/aspnetcore-build:2.0 AS build-env WORKDIR /app # Copy csproj and restore as distinct layers COPY *.sln ./ RUN dotnet restore # Copy everything else and build COPY . ./ RUN dotnet publish -c Release -o ..