asp.net-mvc – 授权属性不工作MVC 5
发布时间:2020-05-23 22:57:22 所属栏目:asp.Net 来源:互联网
导读:我已将模型分为特定项目 之后,MVC默认[Authorize]属性在我的应用程序中不起作用 当我尝试登录应用程序时,它不会登录应用程序,也不会重定向到特定页面 你有类似的东西吗? authentication mode=Forms forms loginUrl=~/Account/Login timeout=2880 //authentic
|
我已将模型分为特定项目 之后,MVC默认[Authorize]属性在我的应用程序中不起作用 当我尝试登录应用程序时,它不会登录应用程序,也不会重定向到特定页面 解决方法你有类似的东西吗?<authentication mode="Forms"> <forms loginUrl="~/Account/Login" timeout="2880" /> </authentication> 在你的web.config? (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – MapRoute和MapPageRoute有什么区别?
- asp.net-mvc – 模型和视图模型之间的区别
- asp.net-mvc – 使用Windows身份验证与活动目录组作为角色
- asp.net – Internet Explorer中的“通过电子邮件发送页面”
- asp.net-mvc – 谷歌日历无法读取ICalendar.
- asp.net-mvc – ASP.Net MVC支持嵌套资源?
- asp.net-web-api – 为什么我在web api中从我的POST获得404
- asp.net – 在IIS 7或IIS 7.5集成模式下,默认文档中可能不会
- asp.net – 在SessionPageStatePersister中保持ViewState
- asp.net-mvc – 实体框架4不保存我的多对多行
推荐文章
站长推荐
- asp.net-mvc – 使用ASP.NET MVC进行项目组织的最
- asp.net-web-api2 – Swagger中的数据注释
- asp.net – 如何从ASP Web服务的JSON响应中删除d
- asp.net-mvc – 在ASP.Net MVC中使用System.Guid
- regex – RegularExpressionAttribute – 如何使
- ASP.NET MVC中是否有嵌套主页?
- asp.net-mvc – 在ASP.NET MVC中的JSON属性中返回
- asp.net-mvc-3 – mvc dropdownlistfor没有标记为
- 如何缓存输出的action方法,返回图像到asp.net mv
- asp.net – 在Visual Studio 2010中更改“切换到
热点阅读
