One web site is required to be accessed by me (developer) and one user (DOMAIN_NAME\\USER_NAME).
When I developed web site in visual studio using "automatic host&quo
Maybe it can be useful: I started to receive 401.2. error in .ASPX application (no changes in the app made), in protected path amd Forms auth.:
<authentication mode="Forms">
...
</authentication>
...
<location path="Admin">
<system.web>
<authorization>
<allow roles="Admin,Client" />
<deny users="*" />
</authorization>
</system.web>
</location>
AFTER launching of other MVC applications on same computer/IIS. It seems MVC changed something in server's config (routes, I believe). Any playing with Authentication in IIS (computer/server/site) did not help. But Next helped: I have changed Application pool from .Net 4.5 to .Net 4.5 Classic for the web application. The difference in pool Managed pipeline mode, Integrated/Classic.
Your web.config is set up properly. Further, ensure the IIS site/app is configured as:
IIS7
IIS6
Find the dialog below at