Category : asp.net

I am quite inexperienced when it comes to dockerfiles. So, I have created the following file for my asp.net framework project based on this file: link, yes I know that there is already a ready image for it ARG REPO=mcr.microsoft.com/dotnet/framework/runtime ARG source FROM $REPO:4.8-windowsservercore-ltsc2019 RUN dism /Online /Quiet /Enable-Feature /All /FeatureName:IIS-WebServerRole /FeatureName:NetFx4Extended-ASPNET45 /FeatureName:IIS-ASPNET45 ` && ..

Read more

I’m working on running a docker-compose comprised of an ASP.NET web application and an Identity Server alongside other services behind an Nginx reverse proxy but I keep having this infinite redirect loop to this URL https://localhost/connect/authorize?client_id=MYCLIENT&redirect_uri=https%3A%2F%2Flocalhost%2Fcallback&response_type=code&scope=openid%20profile%20ServiceX%20ServiceY%20ServiceZ%20roles%20AdministratorClientId_api&state=e3f9362c1c7049daa271cff4f9ae08db&code_challenge=HRpPpN854cPX-0HuuT0tEFSTqyQnS0Bp6Bnk2VG9pQ8&code_challenge_method=S256&response_mode=query Here is my nginx.conf worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { map ..

Read more

I am trying to build docker file below through Jenkins. FROM mcr.microsoft.com/dotnet/sdk:2.1 AS build ARG PROFILE=Production WORKDIR /app COPY . ./ RUN cd src/stayfolio.Demo.Web.aroundfollie && npm install && npm run build:dll && npm start RUN dotnet restore stayfolio.Demo.Web.sln && cd src/stayfolio.Demo.Web.aroundfollie && mkdir -p build/outputs/aroundfollie && dotnet publish –output ../../build/outputs/aroundfollie/ FROM mcr.microsoft.com/dotnet/sdk:2.1 WORKDIR /app COPY ..

Read more

I am new to docker and trying to build and run an image for a Blazor Server Solution, which contains multiple projects. This is how the solution is structured: App |__.dockerignore |__Application |__Domain |__Infrastructure |__RazorClassLibrary |__UI |__Dockerfile I just added the docker file with Visual Studio support and this is what I have: FROM mcr.microsoft.com/dotnet/aspnet:5.0 ..

Read more

I am new to aspnetcore and docker as well. After MS update docker, I reolace microsoft/ to mcr.microsoft.com like below FROM mcr.microsoft.com/aspnetcore-build:2 AS build However when I build this dockerfile on jenkins, it gives an error saying below Step 1/10 : FROM mcr.microsoft.com/aspnetcore-build:2 AS build manifest for mcr.microsoft.com/aspnetcore-build:2 not found: manifest unknown: manifest tagged by ..

Read more

I was curious if anyone has ran into this problem. Specifically within the Asp world. It seems that docker forwards request to the docker container and it appears as though every request coming in is coming from the same IP address(its a docker ip address ex: 172.x.x.x) I’ve seen some fixes as far as using ..

Read more

3.685 Determining projects to restore… #9 27.76 Retrying ‘FindPackagesByIdAsync’ for source ‘https://api.nuget.org/v3-flatcontainer/system.configuration.configurationmanager/index.json’. #9 27.76 An error occurred while sending the request. #9 27.76 The response ended prematurely. #9 66.01 Failed to download package ‘System.DirectoryServices.4.7.0’ from ‘https://api.nuget.org/v3-flatcontainer/system.directoryservices/4.7.0/system.directoryservices.4.7.0.nupkg’. #9 66.01 The download of ‘https://api.nuget.org/v3-flatcontainer/system.directoryservices/4.7.0/system.directoryservices.4.7.0.nupkg’ timed out because no data was received for 60000ms. #9 66.01 Exception of ..

Read more