This is due to the new Oauth support. It uses the new simplemembership, which is located below, using all providers.
Removing the [InitializeSimpleMembership] attribute in the account controller is not enough, because initialization occurs in the WebMatrix.WebData strong> assembly :
[assembly: PreApplicationStartMethod(typeof (PreApplicationStartCode), "Start")]
PreApplicationStartCode.Start terminates the call:
WebSecurity.PreAppStartInit();
This, if checked, shows:
... SimpleRoleProvider simpleRoleProvider = WebSecurity.CreateDefaultSimpleRoleProvider("AspNetSqlRoleProvider", currentDefault2); Roles.Providers.Remove("AspNetSqlRoleProvider"); Roles.Providers.Add((ProviderBase) simpleRoleProvider); ...
How to disable all this βmagicβ using this parameter in the web.config file:
<add key="enableSimpleMembership" value="false"/>
source share