IIS Express is automatically disabling anonymous authentication for my project, why?

后端 未结 3 1430
迷失自我
迷失自我 2020-12-24 11:28

When I switch my ASP.NET MVC project from Cassini web server to IIS Express, this is added to my applicationhost.config file:



        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-24 11:55

    It was because for some reason, this was in my csproj file:

    disabled
    

    Setting it to enabled fixes the issue (it can also be done from Visual Studio, select project, F4, set Anonymous Authentication in the properties grid to Enabled).

提交回复
热议问题