部署MCV 的时候,老是会跳到 Account/Login?ReturnUrl=%2f 这里去。

出现在这钟情况

修改 web.config 里的


   <authentication mode="Windows" />
    <authorization>
        <!--  <deny users="?" />   这个注释掉就可以了加上下面的,可以所有用户访问此网站,里面几个通配符是什么意思,* 所有-->
<allow users="*" />
    </authorization>

原文地址:https://www.cnblogs.com/xiaotuni/p/7208859.html