【发布时间】:2011-09-12 13:09:45
【问题描述】:
我已经为我的 Silverlight 应用程序编写了自定义 roleProvider。 不幸的是,我在加载时遇到错误:
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 46: <providers>
Line 47: <clear />
Line 48: <add name="LanosRoleProvider" type="LANOS.Web.Security.LanosRoleProvider" applicationName="/" />
Line 49: </providers>
Line 50: </roleManager>
Source File: C:\path\LANOS\LANOS.Web\web.config Line: 48
这是我的角色提供者的定义(类在 Lanos.Web 项目中):
namespace LANOS.Web.Security
{
public class LanosRoleProvider : RoleProvider
我真的不知道为什么这不起作用。在将它添加到我的应用程序之前,我已经在一些示例项目中对其进行了测试,并且效果很好。有任何想法吗?
或者至少你能告诉我如何显示配置加载时抛出的异常信息吗?
【问题讨论】:
标签: c# silverlight roleprovider