So I\'ve created a new ASP.NET MVC project using the intranet template. web.config contains the appropriate values (e.g.
After reading the answer of Espen Burud, I solved my problem by changing in the root's web.config:
to
The page that needs Windows Authentication is not in the root, but in a sub directory with its own web.config with deny users ? but that did not make Windows Authentication working. Apparently, you need to deny users in the root for that to work.
The IIS config has Anonymous Authentication enabled; that did not matter. After the above change of web.config, Windows Authentication worked.