Unable to get windows authentication to work through local IIS

前端 未结 9 1749
梦如初夏
梦如初夏 2020-12-07 09:37

So I\'ve created a new ASP.NET MVC project using the intranet template. web.config contains the appropriate values (e.g.

9条回答
  •  情话喂你
    2020-12-07 09:47

    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.

提交回复
热议问题