Category : c#

I have IIS app with Dot.Net core 2.1, I deploy to docker , it is not working. Please tell me what is my missing in Docker file. Please see my code below and app in IIS Dockerfile FROM mcr.microsoft.com/dotnet/aspnet:2.1 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/windows/servercore/iis RUN powershell -NoProfile -Command Remove-Item -Recurse C:inetpubwwwroot* WORKDIR ..

Read more

No Windows, estava usando esse m├ętodo para extrair e estava dando certo: public static string ExtrairCNPJArquivo(X509Certificate2 arquivo) { const string oid = "2.16.76.1.3.3"; StringBuilder cnpj = new StringBuilder(); foreach (X509Extension extension in arquivo.Extensions) { string texto = extension.Format(true); string[] linhas = texto.Split(new char[] { ‘n’, ‘r’ }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < ..

Read more

I’ve written a little proxy ASP.NET Core Web API app (see here) that is running on my Raspberry Pi within a Linux Docker container. The app runs under http://raspberry.fritz.box:5200/joplin and forwards all requests to https://nas.fritz.box:9815. Using XCA, I’ve created a custom Root CA and a HTTPS certificate for nas.fritz.box. I’ve successfully registered the custom Root ..

Read more

I am trying to run a .Net Core based Azure Function inside a Docker container on a M1 Macbook without success so far. Originally I used the Azure Function Core Tools CLI to create the function with the following command: func init LocalFunctionsProject –worker-runtime dotnet –docker which created the following Dockerfile. FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS installer-env ..

Read more

Started working with Docker images recently, and my main problem is that while my docker-compose can spin up the api, and the database I need, what it lacks is the actual scheme of the database that the entities within my API project look for when getting data. So I have a DbContext already, all the ..

Read more