问题描述:

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>

网友答案:

The type needs to be of the format Namespace.ClassName. You might have to deploy the assembly to the GAC or in the bin folder and then provide the type as CustomNamespace.CustomMembershipProvider

相关阅读:
Top