大家好,这是我的应用程序配置
<membership
defaultProvider="TheTWMembershipProvider" userIsOnlineTimeWindow="20">
<providers>
<clear/>
<add name="TheTWMembershipProvider"
type="Model.TWMembershipProvider, Model"/>
</providers>
</membership>
这是我尝试登录时遇到的错误
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Exception has been thrown by the target of an invocation.
Source Error:
Line 99: <clear/>
Line 100: <add name="TheTWMembershipProvider"
Line 101: type="Model.TWMembershipProvider, Model"/>
Line 102: </providers>
Line 103: </membership>
我得到了以Model.Dll
自定义提供程序命名类命名的 DllTWMembershipProvider : System.Web.Security.MembershipProvider
我暗示
public override bool ValidateUser(string username, string password)
{
return true;
}
请帮忙!