I created the default asp.net core application from the defaut template. I chose the Windows authentication option when creating a new project (this is what I did) . When I run the application on issexpress, it works like a charm.
When I moved the application to local iis, it works, but it does not receive user information. I have enabled Windows authentication in Windows features. But it shows me an empty User.Identity.Name. I tried adding these lines to web.config
<security> <authentication> <windowsAuthentication enabled="true" /> <anonymousAuthentication enabled="false" /> </authentication> </security>
Tried to enable Windows authentication from IIS Manager. I do not know what else could be wrong. What am I missing?
source share