C# Active Directory角色提供程序出错

C# Active Directory角色提供程序出错,c#,asp.net-mvc-4,active-directory,C#,Asp.net Mvc 4,Active Directory,我已经研究这个问题一段时间了,似乎找不到任何有效的解决方案。。。我正试图让我的active directory在我的项目上工作,我不断得到以下错误。也许这是一件简单的事情,就在我头上。有没有人对这个方向有什么建议 描述:处理服务此请求所需的配置文件时出错。请查看下面的特定错误详细信息,并适当修改配置文件 分析器错误消息:无法加载类型“ActiveDirectoryRoleProvider” 源错误: Line 33: <clear /> Line 34:

我已经研究这个问题一段时间了,似乎找不到任何有效的解决方案。。。我正试图让我的active directory在我的项目上工作,我不断得到以下错误。也许这是一件简单的事情,就在我头上。有没有人对这个方向有什么建议

描述:处理服务此请求所需的配置文件时出错。请查看下面的特定错误详细信息,并适当修改配置文件

分析器错误消息:无法加载类型“ActiveDirectoryRoleProvider”

源错误:

Line 33:         <clear />
Line 34:         <add name="ActiveDirectoryRoleProvider" connectionStringName="ADConnectionString" connectionUsername="username"
Line 35:              connectionPassword="password" attributeMapUsername="sAMAccountName" type="ActiveDirectoryRoleProvider" />
Line 36:       </providers>
Line 37:     </roleManager>
第33行:
第34行:
第36行:
第37行:

如果您创建了自己的ActiveDirectoryRole提供程序,请确保名称和类型上的拼写与类的名称相同,删除名称空间,以便正确解析

e.g. remove the namespace of the ff:

namespace yourproject.module {
public class ActiveDirectoryRoleProvider: RoleProvider
{ ... }

to make it appear
public class ActiveDirectoryRoleProvider: RoleProvider

您是否为AD构建了名为ActiveDirectoryRoleProvider的自定义角色提供程序?现在正在进行此工作。。。不知道该怎么做,但我正在慢慢地到达那里。。。