身份验证重定向到不存在的登录页面vb.net [英] Authentication redirecting to no-existant login page vb.net

查看:78
本文介绍了身份验证重定向到不存在的登录页面vb.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想知道是否有人可以提供帮助,因为我设法将自己绑在这一个上!

Hi guys, I wonder if anyone can help as I am managing to tie myself in knots over this one!

我试图按用户重定向用户已登录并验证。问题是我被重定向到我的项目中不存在的登录页面,从来没有。我的重定向代码是在default.aspx的页面加载中,我的
web.config文件显示

I am trying to redirect a user by role once they have signed in and authenticated. The problem is that I am being redirected to a login page which does not exist in my project and never has. My code to redirect is in the page load of default.aspx and my web.config file displays

< authentication mode =" forms">

<authentication mode="forms">

< forms defaultUrl ="〜/ Default.aspx" />

<forms defaultUrl="~/Default.aspx"/>

< authentication />

<authentication/>

我知道重定向代码本身正在工作,因为它显示在url中(在login.aspx之后),但只有在它尝试命中login.aspx之后,正如我所说的那样从未存在过,没有任何指向它。

I know that the redirect code itself is working due to the fact that it is displaying in the url (after login.aspx) but only after it has tried to hit login.aspx, which as i say has never existed and nothing points to it.

任何帮助都会受到赞赏,我会在这里撕扯我的头发!

Any help would be appreciated guys, I'm tearing my hair out here!

IndieJanie

IndieJanie

推荐答案

asp.net论坛是@ http://forums.asp.net。
The asp.net forum is @ http://forums.asp.net.


这篇关于身份验证重定向到不存在的登录页面vb.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆