{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/IIS.Administration/issues/31","repository_url":"https://api.github.com/repos/Microsoft/IIS.Administration","labels_url":"https://api.github.com/repos/Microsoft/IIS.Administration/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/IIS.Administration/issues/31/comments","events_url":"https://api.github.com/repos/Microsoft/IIS.Administration/issues/31/events","html_url":"https://github.com/Microsoft/IIS.Administration/issues/31","id":184591364,"number":31,"title":"Error 0x800f0922 enabling Windows Authentication on Nano Server","user":{"login":"jimmyca15","id":21000428,"avatar_url":"https://avatars.githubusercontent.com/u/21000428?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmyca15","html_url":"https://github.com/jimmyca15","followers_url":"https://api.github.com/users/jimmyca15/followers","following_url":"https://api.github.com/users/jimmyca15/following{/other_user}","gists_url":"https://api.github.com/users/jimmyca15/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyca15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyca15/subscriptions","organizations_url":"https://api.github.com/users/jimmyca15/orgs","repos_url":"https://api.github.com/users/jimmyca15/repos","events_url":"https://api.github.com/users/jimmyca15/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyca15/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-21T23:32:04Z","updated_at":"2016-10-21T23:32:04Z","closed_at":null,"body":"This error may occur when attempting to install Microsoft IIS Administration on Nano Server. This issue is caused by unlocking sections in the applicationHost.config file and then attempting to use DISM to install IIS optional features. Installing .NET Core on Nano Server requires unlocking the _handlers_ section of the applicationHost.config. Therefore if __.NET Core__ is installed before trying to enable windows authentication, this error will be encountered.\r\n\r\n## Avoiding\r\nTo avoid this error, enable all desired IIS optional features before making any modifications to the applicationHost.config file.\r\n\r\n```\r\n# Enable IIS Administration dependencies\r\nEnable-WindowsOptionalFeature -Online -FeatureName \"IIS-WindowsAuthentication\"\r\nEnable-WindowsOptionalFeature -Online -FeatureName \"IIS-URLAuthorization\"\r\n# Optionally, take the chance to enable all IIS features\r\n# Get-WindowsOptionalFeature -Online | where {$_.FeatureName -match \"IIS-\" -and $_.State -eq [Microsoft.Dism.Commands.FeatureState]::Disabled} | % {Enable-WindowsOptionalFeature -Online -FeatureName $_.FeatureName}\r\n```\r\n\r\n### Workaround\r\nA known work around for this error is to reset the override mode of the sections that have been unlocked. For example, if .NET Core and the ASP.NET Core Module has been installed, then the _handlers_ section would have been unlocked. Reset it with the following PowerShell commands.\r\n\r\n```\r\n# Reset to default handlers settings\r\nImport-module iisadministration \r\nReset-IISServerManager -confirm:$false \r\n$sm = Get-IISServerManager \r\n$appHostconfig = $sm.GetApplicationHostConfiguration() \r\n$section = $appHostconfig.GetSection(\"system.webServer/handlers\") \r\n$section.OverrideMode=\"Inherit\" \r\n$sm.CommitChanges()\r\n```"}}
{"actor":{"display_login":"jimmyca15"}}