New Asp.Net MVC5 project produces an infinite loop to login page

后端 未结 21 3416
粉色の甜心
粉色の甜心 2020-11-29 20:12

I am creating a brand new projet with Visual Studio 2013, I choose Asp.Net MVC and the framework 4.5.1 The project is created, then, I do nothing else than F5 to start the d

21条回答
  •  难免孤独
    2020-11-29 20:54

    ASP.Net MVC 5 template adds Microsoft.Owin and related libraries to the project. Since Owin infrastructure doesn't require Forms Authentication, the template also introduces the following key in web.config.

    
      
        
      
    
    

    Presence of this key could be a reason for undesirable looping back to Login page. Commenting it may help fix the problem for some people.

提交回复
热议问题