Asp.net 表单重定向
我正在根据教程构建一个测试web应用程序ASP.NET VB,请在使用用户名jose和密码成功登录后查看,并使用formsauthentication.redirectfromloginpage方法将应用程序重定向到根目录下不存在的default.aspx。应用程序也不在根目录下 有什么帮助吗 编辑Asp.net 表单重定向,asp.net,vb.net,Asp.net,Vb.net,我正在根据教程构建一个测试web应用程序ASP.NET VB,请在使用用户名jose和密码成功登录后查看,并使用formsauthentication.redirectfromloginpage方法将应用程序重定向到根目录下不存在的default.aspx。应用程序也不在根目录下 有什么帮助吗 编辑 此处的配置仍然不起作用: <location path="wwwroot/aspnetsystem"> <system.web> <cust
此处的配置仍然不起作用:
<location path="wwwroot/aspnetsystem">
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms defaultUrl="wwwroot/aspnetsystem/Default.aspx" />
</authentication>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
在web.config中设置要重定向到的默认页面
<authentication mode="Forms">
<forms defaultUrl="index.aspx" />
</authentication>
此处的配置仍然无效:@user295454:我已将您的评论添加到问题中。请提供web应用程序的结构。