Category : .net-core

My dotnet core API connection strings ("Data Source=SERVER;Initial Catalog=DB;Trusted_Connection=True;") use the IIS Application Pools Identity for authorization with the MSSQL servers. I’m about to move the hosting of the API from IIS to a docker container on another server, but cannot for the life of me figure out, how to provide the app/container with the ..

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 run my azure function application as a docker image and when I do it throws me a System.PlatformNotSupportedException in Microsoft.Data.SqlClient.dll: ‘Strings.PlatformNotSupported_DataSqlClient’ exception any time I try to call my datalayer (no matter if its EF Core or Dapper that I use). I can run the application just fine when setting my API ..

Read more

I have two containers (both .net-core), a Web Application and a Web API, the Web Application can be accessed from the host machine using http://localhost:51217, however I can’t access the Web API using http://localhost:51218, I got the connection refused, in order to access the Web API, I had to change the Kerstel URL configuration from ..

Read more

I have a dotnet core app that that needs to run inside a windows core container and expose 443 port (https) I passed the certificate to the container, set up the environment variables for user path and password. The application is able to find de certificate but fails with the following error: crit: Microsoft.AspNetCore.Server.Kestrel[0] Unable ..

Read more