MVC5 Redirects to Login.aspx when using Windows Authentication

后端 未结 4 2504
抹茶落季
抹茶落季 2020-12-15 04:16

After upgrading from MVC 4 to MVC 5, my application (when started from within Visual Studio) gives the following error. It might also be worth noting that I am hosting both

4条回答
  •  心在旅途
    2020-12-15 04:25

    If you are running your app locally and getting an http 401 error then you may need to change your IISExpress configuration. Go to Documents>IISExpress>applicationhost.config

    Make sure windowsAuthentication is enabled:

                 
                    
                        
                        
                    
                
    

提交回复
热议问题