User-893317190 posted
Hi techasuran,
Are you using iisexpress?
By default, windows authentication is closed. You should config your iisexpress's applicationhost.config to enable it.
Change the section group of windows authentication's overrideModeDefault property to allow so that you could override it in web.config.
<sectionGroup name="authentication">
<section name="anonymousAuthentication" overrideModeDefault="Deny" />
<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>
Under webserver node, change lockItem to false
<system.webServer>
<modules>
<add name="WindowsAuthenticationModule" lockItem="false" />
Then you could config your web.config's system.webserver node , add the following configuration.
<security>
<authentication>
<windowsAuthentication enabled="true" />
<anonymousAuthentication enabled="false" />
</authentication>
</security>
For more information , you could refer to
https://codepunk.io/windows-authentication-in-iis-express/
For iis, please refer to
https://stackoverflow.com/questions/436169/iis7-setup-integrated-windows-authentication-like-in-iis6
Best regards,
Ackerly Xu