2

大家好,这是我的应用程序配置

   <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;
    }

请帮忙!

4

1 回答 1

4

错误消息表明调用成员资格提供程序的构造函数(实例或静态)时出错。请记住,字段初始值设定项算作构造函数的一部分!

您应该有一个包含更多详细信息的内部异常。

于 2012-11-22T11:58:26.753 回答