Windows authentication doesn't work when I run project from Visual Studio

前端 未结 2 871
粉色の甜心
粉色の甜心 2020-12-13 11:02

Windows authentication works good when I host my ASP.NET MVC project on IIS. But if I run it from Visual Studio - it doesn\'t.

Here is my Web.config:



        
2条回答
  •  情话喂你
    2020-12-13 11:37

    I couldn't quite get the @Darin Dimitrov solution to work (mainly as I couldn't find the IIS Express setting described in Visual Studio!).

    I found I had to edit the IIS Express application.config file:

    • in Visual Studio 2013 this is in %userprofile%\documents\iisexpress\config
    • in Visual Studio 2015 this is in the config folder in the hidden .vs folder in the solution (just add \.vs\config in Windows explorer to get there).

    and amend:

    
    

    to:

    
    

提交回复
热议问题