IIS 7 and Above
Web.config "authentication mode="Windows"
Last post Sep 12, 2014 06:14 AM by yaqui
Sep 11, 2014 08:36 AM|yaqui|LINK
I have a problem, that I don´t understand, and I guess that I´m doing something wrong but I don´t know.
I have a website with ISS and ASP.net. This is running inside Control Domain, and I have this in my web.config
<allow users="DOMAINNAME\UserName" />
<deny users="*" />
but this code, give the following error
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web
server's administrator for additional assistance.
Then I change my code like this one
<authentication mode="Windows" />
And now, I can access, the problem is that the browser not show me the login windows pop up. is it normal?
Sep 11, 2014 11:02 PM|lextm|LINK
You need to disable anonymous authentication on IIS side, and enable Windows authentication there too, so as to match the ASP.NET side settings.
Sep 12, 2014 06:14 AM|yaqui|LINK
Yes, you are right!!!
Now work fine!!!