Category : iis

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

When copying the application content into the container, it works. But if rather than copying, the folder is mapped to the folder in the host, I get 401 from IIS. So, this works # Dockerfile FROM microsoft/aspnet COPY ./src/publish/ /inetpub/wwwroot # ——————————— # docker-compose.yaml version: ‘3.8’ services: webapp: build: . ports: – "8080:80" Browse to ..

Read more

I am new in .NET Core and as far as I see from my search on the web, appsettings.Development.json is used for development config while developing the app and appsettings.Production.json is used on the published app in production server. Here are the example part that I set on both: appsettings.Development.json: "ConnectionStrings": { "DefaultConnection": "Server=localhost,21433;Initial Catalog=DemoDbDev;User ..

Read more

I have the following working with microsoft/iis, but I would like to get it working with the smaller nanoserver. When I replace microsoft/iis with nanoserver/iis this line fails. Is it because exe files cannot run in nanoserver? C:vc_redist-x64.exe /quiet /install FROM nanoserver/iis This works: FROM microsoft/iis ADD PHP_7.3.26-NTS.zip C:php.zip #unzip RUN powershell -Command "expand-archive -Path ..

Read more

I’m working with the docker image "mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019". I’ve noticed that the default user for windowsservercore is ContainerAdministrator. If I try to run the image with the user ContainerUser (docker run -u ContainerUser mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019) I get the following error: ERROR: Failed to stop or query status of service ‘w3svc’ error [80070005]. I think that the error ..

Read more

The container I’m baking constantly fails: Service ‘w3svc’ has been stopped APPCMD failed with error code 4312 Failed to update IIS configuration [2021-02-15T21:35:11.000Z][LOGMONITOR] INFO: Entrypoint processs exit code: -2147467259 It is built out of Sitecore 10 image with solution files on top: # escape=` # Clean Sitecote 10 image ARG RUNTIME_IMAGE # Image with custom ..

Read more

I have a Docker Windows image built based on the Microsoft’s Server Core IIS image (mcr.microsoft.com/windows/servercore/iis). The CI builds the solution and creates a Docker image with my legacy .NET Framework 4.7.2 web app. Dockerfile is very simple: FROM mcr.microsoft.com/windows/servercore/iis RUN powershell -NoProfile -Command Remove-Item -Recurse C:inetpubwwwroot* WORKDIR /inetpub/wwwroot COPY bin . So far everything ..

Read more

I have a problem for few days now with the "dotnet hosting bundle" and AspNetCoreV2 IIS module in a dockerimage. So, I creating a dockerimage with many IIS modules and requirements to execute our software. The dockerimage works good expect this AspNetCoreV2 module. When the container created, I check the modules installed with Get-WebGlobalModule and ..

Read more