I have set up a Web Application from VS template (MVC), and then enable Windows Authentication.
<authentication mode="Windows" />
<authorization>
<allow roles="ABC\Domain Users" />
<deny users="*" />
</authorization>
Then publish the web application to an IIS server.
It works fine, when requesting the index page of the application from client machine it logs me in automatically, tested with IE using the following link http://myteamserver.mycompany/myapplication
.
But if I RDP to the server (\\myteamserver.mycompany
where the IIS is hosted), and open the same link in IE, it keeps prompting for credential, even after inputting the correct credential, I am denied access.
The error message:
HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to invalid authentication headers.
Question: What is the difference between running IE on client machine and IE on the server?
I check the IE setting on the server, "Enable Integrated Windows Authentication" is checked. Also I RDP to another server, and from there I can access the web application without any problem.