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

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

    Please be aware that this is potentially harmful advice, it's rarely a good idea to modify an applicationhost config file directly, there are usually tools that will do this for you, safely (for example, from within Visual Studio.) Before proceeding, be sure to create a backup copy of this file in the event your IIS Express becomes trashed.

    To fix this problem, I took the default IIS configuration file located here :

    C:\Windows\System32\inetsrv\config\applicationHost.config
    

    To my document

    %userprofile%\documents\iisexpress\config\applicationhost.config
    

    And it worked.

    This was because I had some Windows Authentification set and not the anonymous account.

提交回复
热议问题