Category : .net-5

This is my docker file: FROM mcr.microsoft.com/dotnet/aspnet:5.0.3-buster-slim AS base RUN apt-get update -yq && apt-get install curl gnupg -yq && curl -sL https://deb.nodesource.com/setup_12.x | bash && apt-get install nodejs -yq WORKDIR /app EXPOSE 80 EXPOSE 443 #RUN apt update && apt -y upgrade && apt install -y procps && apt -y install bash && apt ..

Read more

I am using .net 5 to create an api which needs to be hosted as a Linux container. I have used the HttpClientFactory to create typed HttpClient which will call an external api , this external api requires client certificates to be passed in the request for which I used the HtppClientHandler with the ConfigurePrimaryHttpMessageHandler() ..

Read more

I’m trying to upgrade my blazor wasm app to 5.0. It works fine in development, but when trying to publish to Linux Docker container (to deploy Digital Ocean) I am getting the following error on start up where Identity Server starts: Unhandled exception. System.InvalidOperationException: There was an error loading the certificate. Either the password is ..

Read more

I’ve got 2 windows containers for: MSSQL Server Developer Edition (microsoft/mssql-server-windows-developer) Asp.Net Core API 5.0 (5.0.102) (solomiosisante/consequence:api) No problem accessing the SQLServer container data from Management Studio (SSMS). No problem when I run the API project from Visual Studio accessing the SQLServer container. The problem is when I run both containers, the error says: fail: ..

Read more

I’m trying to run a .NET 5 web application in a Docker container locally with Docker Desktop (Windows containers). The container runs but it won’t run in my browser. http://localhost:8080 or https://localhost:8001 doesn’t load properly. I followed https://devblogs.microsoft.com/premier-developer/running-a-net-core-web-application-in-docker-container-using-docker-desktop-for-windows/. This is what the Docker file looks like: FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base WORKDIR /app EXPOSE 80 EXPOSE ..

Read more

When starting a .NET 5 project locally there is an automatic roll forward, meaning when starting the project the runtime will choose the newest minor/patch version installed on the system. For deploy to production I use docker with a typical Dockerfile with lines like FROM mcr.microsoft.com/dotnet/sdk:5.0 and FROM mcr.microsoft.com/dotnet/aspnet:5.0 When typing "dotnet –info" on the ..

Read more