Getting this error:
HTTP Error 401.1 - Unauthorized You do not have permission to view this directory or page using the credentials that you supplied.
I have successfully got Windows Authentication setup on my Windows 7 with IIS 7.5, just not on the test server (Windows Server 2008). Test server is within the network and I have access.
Things I have tried:
- Turned on Windows feature, Windows Authentication
- In IIS (7.0) Authentication, set Windows Authentication to enabled & Anonymous Authentication to disabled.
- This is from the web.config file:
<system.web> <compilation debug="true" targetFramework="4.5"/> <httpRuntime /> <authentication mode="Windows" /> <authorization> <allow users="MyDomain\SomeUser" /> <deny users="*" /> </authorization> <pages controlRenderingCompatibilityVersion="4.0" /> </system.web>
I can't think figure this out. Any ideas?