The anonymous account typically uses iuser, but authenticated accounts the pool account. Check the pool account permissions
Windows Authentication in IIS - 401
Hi,
I have setup the my web application in IIS as windows authentication. However, I am getting a "401 - Unauthorized: Access is denied due to invalid credentials." when I load the page. However, it works fine if I switch it to anonymous authentication. I have already granted my account to the folder of the web app already. Am I missing anything?
Thanks in advance.
Windows development Internet Information Services
3 answers
Sort by: Most helpful
-
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2022-02-28T23:43:01.417+00:00 -
Wan 1 Reputation point
2022-03-01T01:21:20.273+00:00 I granted the pool account permission to the folder, but still no luck
-
Michael Archer 1 Reputation point
2022-03-10T21:42:32.29+00:00 Another thing to check is if you set the site level to use anonymous authentication, make sure the authentication type for each application page shows anonymous. When you make a change at the site level, those changes should propagate down to the child pages, but not always.
Another thing to try is to add in the trace feature to IIS and enabling it. The output will give a more detailed look at where the 401 is occurring.