<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" 才导致的,现在连注册页面都无法进入来注册一个用户名,而只有登陆页面
至少要能显示这个注册页面,那么怎么解决这个问题呢?
本文描述了在ASP.NET应用程序中设置身份验证后遇到的问题:所有页面仅显示登录页面,无法访问注册页面。问题可能源于配置文件中protection属性的设置。
6万+

被折叠的 条评论
为什么被折叠?



