I have an application I am trying to migrate from Server 2012 IIS 8 to Server 2016 IIS 10. When I initially move everything over I am receiving the attached error message.
I have read through several stack exchange posts and it basically says the section needs to be unlocked. I have unlocked the section via the command prompt command and via the IIS manager.
The section shows unlocked
This issue happens only with Modules which are listed as Native. To resolve this error you need to unlock this module from the server level.
Remove-WebConfigurationLock -pspath 'MACHINE/WEBROOT/APPHOST' -filter "system.webServer/modules/add[@name='WindowsAuthenticationModule']"
You can directly unlock this setting using iis manager GUI option.
and then restart iis server.
User contributions licensed under CC BY-SA 3.0