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

后端 未结 21 3174
粉色の甜心
粉色の甜心 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 21:03

    I had to remove (Source Link):

    <authorization>
      <deny users="?" />
    </authorization>
    
    0 讨论(0)
  • 2020-11-29 21:03

    I faced the same problem because my MVC project was configured for .Net 4.5 but I was using .Net 4.0 as my application pool in IIS. Switched it to .Net 4.5 application pool and the problem was fixed. I hope this helps some one else!

    0 讨论(0)
  • 2020-11-29 21:03

    For me, removing the following block fixed it:

    <authorization>
      <deny users="?" />
      <allow users="*" />
    </authorization>
    

    Assume

    <authentication mode="None" />
    
    0 讨论(0)
提交回复
热议问题