当前位置: 动力学知识库 > 问答 > 编程问答 >

asp.net - ASP web.config path -> cannot load file

问题描述:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: