我在我的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
发布评论