0

I try to use asp:login with my own membershipprovider, but when I write this code I got problem with type, concretly I get error that I am not able to load ~/App_Data/MyMembershipProvider
<membership defaultProvider="default">
<providers>
<clear/>
<add name="default" type="/~App_Data/MyMembershipProvider"/>
</providers>
</membership>

4

1 回答 1

0

该类型需要采用 Namespace.ClassName 格式。您可能必须将程序集部署到 GAC 或 bin 文件夹中,然后提供类型为 CustomNamespace.CustomMembershipProvider

于 2013-04-21T23:59:46.313 回答