问题
I searched enough but couldn't find a solution. I have a ASP.NET Intranet app at Windows Server 2008 IIS 7.5 with windows authentication - this all work great.
I have been trying to migrate it to Windows Server 2012. I have already installed Windows Authentication role for the server and already enabled the windows authentication for the web site.
The application seems to be working fine for my account but if anybody else try to connect they get windows login popup.
回答1:
I was having similar issues. I wrote up this answer:
- How to enable Windows Authentication on a Windows Server 2012 IIS website using Powershell?
Short answer is:
- Ensure you have
Web-Windows-Auth
installed - Ensure
Set-WebConfigurationProperty
has been set for Windows Authentication (and I turned off Anonymous Authentication too) - Ensure your Web.Config is properly setup
The biggest difference is IIS has turned this off by default, and you have to explicitly enable it to use it, even though your Web.Config is configured correctly.
来源:https://stackoverflow.com/questions/36503115/configure-windows-authentication-in-iis-8-5-on-windows-server-2012