ASP.NET表单身份验证:RoleProvider配置异常(ASP.NET Form Authentication: RoleProvider Configuration Exception)

编程入门 行业动态 更新时间:2024-10-09 07:28:20
ASP.NET表单身份验证:RoleProvider配置异常(ASP.NET Form Authentication: RoleProvider Configuration Exception)

我在我的MVC4网络应用程序中实现了自定义成员资格和角色提供程序,该应用程 我遵循了Matt Wrock的实现,但我收到了下面的配置错误。

起初我以为可能是type变量不是完全合格的,但那不是问题。

任何帮助将不胜感激。

配置错误

描述:处理为此请求提供服务所需的配置文件时发生错误。 请查看下面的具体错误详细信息并相应地修改配置文件。

分析器错误消息:调用目标已抛出异常。

来源错误:

Line 27: <providers> Line 28: <clear /> Line 29: <add name="AdminRoleProvider" type="MyProject.Common.Security.AdminRoleProvider" /> Line 30: </providers> Line 31: </roleManager>

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Exception has been thrown by the target of an invocation.

Source Error:

Line 27: <providers> Line 28: <clear /> Line 29: <add name="AdminRoleProvider" type="MyProject.Common.Security.AdminRoleProvider" /> Line 30: </providers> Line 31: </roleManager>

Source File: C:\Dev\MyProject\web.config Line: 29

最满意答案

我设法解决了这个问题。

AdminRoleProvider在调用时引发了错误。 吞下该异常并仅显示为“配置错误”。

I managed to solve the problem.

The AdminRoleProvider threw an error upon invocation. The exception was swallowed and merely displayed as a "Configuration Error".

更多推荐

错误,配置,Line,error,type,电脑培训,计算机培训,IT培训"/> <meta name="descrip

本文发布于:2023-08-02 07:45:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1372656.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表单   身份验证   异常   ASP   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!