我想ConfigurableActiveDirectoryMembershipProvider
在我的代码中使用。我的当前设置为
<add name="XXXXMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershi pProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="XXXXConnectionString"
connectionUsername="user"
connectionPassword="password"
connectionProtection="Secure" />
我已将其更改为
<add connectionStringName=""
name="XXXXDomainADMembershipProvider"
type="Spring.Web.Providers.MembershipProviderAdapter, Spring.Web" />
并添加到我的spring配置文件中
<object id="XXXXDomainADMembershipProvider"
type="Spring.Web.Providers.ConfigurableActiveDirec toryMembershipProvider">
<property name="connectionStringName" value="XXXXDomainConnectionString" />
<property name="connectionUsername" value="user" />
<property name="connectionPassword" value="password" />
</object>
但我收到以下错误
创建上下文“spring.root”时出错:无法从字符串值“Spring.Web.Providers.ConfigurableActiveDirectoryM embershipProvider”加载类型。
我检查了Spring.WebQuickStart
源代码,该类Spring.Web.Providers.ConfigurableActiveDirectoryMembershipProvider
已被注释掉。
这是我收到上述错误的原因吗?