Category : asp.net-web-api

Dotnet publish was run first. dotnet publish WebApi.csproj -c Release -o out_linux -r linux-x64 By selenium/standalone-chrome we mean the image from here https://hub.docker.com/r/selenium/standalone-chrome If put Dockerfile below into out_linux directory how to achieve merging asp.net + selenium into a single container. I tried different combinations but was unable to achieve that. I don’t want dotnet ..

Read more

I am new to docker and wish to set TZ=Australia/NSW to the official dotnet core docker image I tried adding to ENV TZ=Australia/NSW on line 5, but it didn’t work. Please help. FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 ENV TZ=Australia/NSW FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build WORKDIR /src COPY ["Application.WebAPI/Application.WebAPI.csproj", "Application.WebAPI/"] RUN dotnet ..

Read more

I am new to docker and wish to set TZ=Australia/NSW to the official dotnet core docker image I tried adding to ENV TZ=Australia/NSW on line 5, but it didn’t work. Please help. FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 ENV TZ=Australia/NSW FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build WORKDIR /src COPY ["Application.WebAPI/Application.WebAPI.csproj", "Application.WebAPI/"] RUN dotnet ..

Read more

I’m trying to use device code authentication in my containerized ASP.NET WebAPI project. Everything works fine when i run the app outside of docker but i’m getting the following error when the app runs in a docker container: Microsoft.AspNetCore.Server.Kestrel[13] Connection id "0HMBPTCKK2U5R", Request id "0HMBPTCKK2U5R:00000002": An unhandled exception was thrown by the application. MSAL.NetCore.4.36.0.0.MsalServiceException: ErrorCode: ..

Read more