Windows Authentication not working in existing asp.net site
问题 I have an existing asp.net site that I want to modify to use Windows authentication (It is on a local intranet.) I have modified the web.config file to use Windows Auth: <configuration> <system.web> <authentication mode="Windows"/> <authorization> <deny users="?"/> </authorization> <compilation debug="true"/> </system.web> The error message that I get is: 401.2.: Unauthorized: Logon failed due to server configuration. If I remove: <deny users="?"/> Then the page is shown. However this code