Configuration in my web config file
<system.webServer>
<security>
<authentication>
<anonymousAuthentication enabled=”false” />
<windowsAuthentication enabled=”true” />
</authentication>
</security>
</system.webServer>
After hosting my application in IIS, I am getting the below error message.
To resolve this issue by applicationHost.config you need to follow the below steps
1.Open the applicationHost.config which is placed in the directory C:Windowssystem32inetsrvconfig.
2.Look through the xml and change the overrideModeDefault tags from Deny to Allow for the sections overrideModeDefault and windowsAuthentication.
<sectionGroup name=”authentication”>
<section name=”anonymousAuthentication” overrideModeDefault=”Allow” />
<section name=”basicAuthentication” overrideModeDefault=”Deny” />
<section name=”clientCertificateMappingAuthentication” overrideModeDefault=”Deny” />
<section name=”digestAuthentication” overrideModeDefault=”Deny” />
<section name=”iisClientCertificateMappingAuthentication” overrideModeDefault=”Deny” />
<section name=”windowsAuthentication” overrideModeDefault=”Allow” />
</sectionGroup>
Thanks,
Morgan
Software Developer