现在的位置: 首页 > 综合 > 正文

visual studio中运行所有的网页都只会显示登陆页面

2014年02月03日 ⁄ 综合 ⁄ 共 356字 ⁄ 字号 评论关闭

 <system.web>

    <compilation debug="true"/>

    <authentication mode="Forms">
          <forms loginUrl="login.aspx" protection="All" path="/" />
    </authentication>
    <authorization>
          <deny users="?" />
    </authorization>

</system.web>

 

设置了这个以后,在visual studio中运行所有的网页都只会显示登陆页面!!!

 

说的是protection="All" 才导致的,现在连注册页面都无法进入来注册一个用户名,而只有登陆页面

 

至少要能显示这个注册页面,那么怎么解决这个问题呢?

抱歉!评论已关闭.