MVC 4 application goes to login page first using Windows auth when run

前端 未结 4 2108
我在风中等你
我在风中等你 2021-01-26 12:14

I am currently developing a project that will use Windows authentication to authorize users and set their specific permissions. However, every time I run the program to test, t

4条回答
  •  迷失自我
    2021-01-26 12:46

    As it turns out, when creating an MVC ASP.NET application, two web.config files are generated. My changes were going into the wrong web.config file (the one under the views folder), rather than the main one in the application. By applying the changes in my original question to this other config file, the application works as intended.

    For more information on the two web.config files, see this SO question: Why does .NET generate two web.config files in an MVC asp.net application?

提交回复
热议问题