Membership provider properties not being read from web.config

very_bad_man

New Member
I'm having a problem with a custom Membership implementation for ASP.NET using EF. The thing is, my web.config features the default values for the provider but at runtime those default are only being read in Initialize() the first time provider is instantiated (that happens for instance when I request the Register view via GET but when I fill in the form and POST to the controller the Initialize() on the provider class doesn't get called and all the provider settings are null or default value types value.This is my web.config section:\[code\] <membership> <providers> <clear /> <add name="AspNetSqlMembershipProvider" type="BN.Membership.EfMembershipProvider, BN" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> </providers> </membership> <roleManager enabled="false"> <providers> <clear /> <add name="AspNetSqlRoleProvider" type="BN.Membership.EfRoleProvider, BN" connectionStringName="ApplicationServices" applicationName="/" /> </providers> </roleManager>\[/code\]Since my provider class is quite huge I am not posting it here but will post some parts of it if requested.
 
Back
Top