<authentication mode="Forms"> <forms loginUrl="~/Home/Index" defaultUrl="~/Home/main" protection="All"/> </authentication> <authorization> <deny users="?"/> <allow users="*"/> </authorization>
这样配置不对吗?,怎么一运行就报错,请赐教
<system.webServer> <!--<modules> <remove name="FormsAuthentication" /> </modules>--> </system.webServer>
Hi,
如果你移除 formsauthentication 模块会让form验证失效。你设置的是用home/index来登陆但是 错误页显示你在用account/login页面来登陆。 你是不是有其他URL 重定向规则在制造无限循环。