Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start monitoring changes to 'C:\inetpub\wwwroot\App_Code'. in Docker container #1

Open
sudha559 opened this issue Jan 26, 2018 · 0 comments

Comments

@sudha559
Copy link

Hi All,
I am trying to containerise the asp.net traditional web application.I am able to launch the container.While I am trying to launch the website in browser i am getting below error:
Please see below Image.
error

Dockerfile:
FROM microsoft/aspnet:4.7.1-windowsservercore-ltsc2016

ARG source
WORKDIR /inetpub/wwwroot
COPY ${source:-obj/Docker/publish} .
#RUN mkdir App_Cert
#RUN cd App_Cert
#COPY c:\users\smaram002\downloads\App_Cert\ .
ENTRYPOINT ["powershell", "-command Import-Certificate -CertStoreLocation cert:\localmachine\root -Filepath C:\inetpub\wwwroot\Cert\OFISSigningCert.cer"]

And I have tried below solution:

Adding a user so i can connect trough IIS Manager:
RUN NET USER testing "Password01!" /ADD
RUN NET LOCALGROUP "Administrators" "testing" /add
Grant Permissions:
RUN icacls "C:\IIS*" /grant everyone:(OI)(CI)F /T

Install neccassary features

RUN powershell Install-WindowsFeature Web-Mgmt-Service
RUN powershell Install-WindowsFeature Web-Windows-Auth
RUN powershell Install-WindowsFeature NET-Framework-45-ASPNET
RUN powershell Install-WindowsFeature Web-Asp-Net45
RUN powershell Install-WindowsFeature NET-WCF-HTTP-Activation45
Start Service and make it autorun
RUN net start wmsvc
RUN sc config WMSVC start= auto
RUN powershell -NoProfile -Command
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WebManagement\Server -Name EnableRemoteManagement -Value 1

Docker logs:
PS C:\Users\smaram002> docker logs c4a9dd870437
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
PS C:\Users\smaram002>

Please share your views .....Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant