在尝试使用自定义 MembershipProvider delpoy ASP.Net MVC3 应用程序时,我得到了这个:
This method cannot be called during the application's pre-start initialization stage.
Line 43 <membership defaultProvider="NAMembershipProvider">
Line 44 <providers>
Line 45 <clear/>
Line 46 <add name="NAMembershipProvider" type="MyPage.Infrastructure.NAMembershipProvider"
enablePasswordRetrieval="false" enablePasswordReset="true"
requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
applicationName="/" />
Line 47 </providers>
Line 48 </membership>
我该如何解决?