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

Unlocking config sections breaks IIS #28

Closed
mrichman opened this issue Feb 25, 2017 · 0 comments
Closed

Unlocking config sections breaks IIS #28

mrichman opened this issue Feb 25, 2017 · 0 comments

Comments

@mrichman
Copy link

mrichman commented Feb 25, 2017

In my Dockerfile, I need to unlock several config sections as follows:

RUN & c:\windows\system32\inetsrv\appcmd.exe unlock config /section:system.web/authentication

My app requires <authentication mode="Windows" />.

In my container, IIS works fine until I run this command in my image. Then I get this error using the PS command Get-EventLog application -newest 1 | format-list:

The worker process for application pool 'DefaultAppPool' encountered an error 'Configuration file is not well-formed XML trying to read configuration data from file '\?\C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config', line number '3'. The data field contains the error code.

I also tried changing the runtime of the DefaultAppPool to 4.5, thinking that might help:

Set-ItemProperty -Path IIS:\AppPools\DefaultAppPool\ -Name managedRuntimeVersion -Value 'v4.5'

But that made no difference, even after restarting IIS inside the container.

Attemping iisreset produces these errors:

Index : 479
EntryType : Error
InstanceId : 3221232473
Message : The World Wide Web Publishing Service service depends on the Windows Process Activation Service
service which failed to start because of the following error:
%%50
Category : (0)
CategoryNumber : 0
ReplacementStrings : {World Wide Web Publishing Service, Windows Process Activation Service, %%50}
Source : Service Control Manager
TimeGenerated : 2/25/2017 11:41:06 PM
TimeWritten : 2/25/2017 11:41:06 PM
UserName :

Index : 478
EntryType : Error
InstanceId : 3221232495
Message : The Windows Process Activation Service service terminated with the following error:
%%50
Category : (0)
CategoryNumber : 0
ReplacementStrings : {Windows Process Activation Service, %%50}
Source : Service Control Manager
TimeGenerated : 2/25/2017 11:41:06 PM
TimeWritten : 2/25/2017 11:41:06 PM
UserName :

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