문제

hi guys here is my app config

   <membership
 defaultProvider="TheTWMembershipProvider" userIsOnlineTimeWindow="20">
      <providers>
        <clear/>
        <add name="TheTWMembershipProvider"
            type="Model.TWMembershipProvider, Model"/>
      </providers>
    </membership>

this is the error i get when I try to login

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> 

I got Dll Named Model.Dll With Custom Provider Named class TWMembershipProvider : System.Web.Security.MembershipProvider

I impliment

 public override bool ValidateUser(string username, string password)
    {
        return true;
    }

please help!

도움이 되었습니까?

해결책

The error message suggests there was an error calling the constructor (instance or static) of your membership provider. Remember that field initializers count as part of the constructor!

You should have an inner exception which will contain more details.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top