MVC 3默认的注册链接无法正常工作 [英] MVC 3 default register link not work

查看:97
本文介绍了MVC 3默认的注册链接无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
   MVC形式LoginUrl是不正确

我已经部署了简单的MVC 3到IIS 7.5。
寄存器重定向网址的 /帐号/ LogOn支持?RETURNURL =%2fAccount%2fRegister 的。
它不重定向到注册网页。

I have deployed the simple mvc 3 to IIS 7.5. The register redirect url is /Account/LogOn?ReturnUrl=%2fAccount%2fRegister. It does not redirect to registration web page.

这似乎是登录的问题,因为线程:
MVC形式LoginUrl是不正确

It seems like the Logon problem as the thread: MVC Forms LoginUrl is incorrect

推荐答案

什么想到的是,如果你已经检查了,如果你的注册方法是不 AuthorizeAttribute
也许你已经把AuthorizeAtrtribute在控制器的顶部,或者您已经创建与属性的BaseController,所以每一个控制器从中获取需要用户进行身份验证

What comes to mind is if you have checked if your register method is without the AuthorizeAttribute? Maybe you've put the AuthorizeAtrtribute on top of the controller or you you've created a BaseController with the attribute, so every controller deriving from it need the user to be authenticated

这篇关于MVC 3默认的注册链接无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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