I have read through all the related questions, but I still unable to get the right solution for some reason, something is not right on my side, but not sure what\'s causing
Custom Membership provider is initialized automatically and it is not intended to do so manually.
In my implementation, there is the Initialize metod like below:
public override void Initialize(string name, NameValueCollection config)
{
if (config == null)
throw new ArgumentNullException("config");
// Initialize the abstract base class.
base.Initialize(name, config);
}
Keep in mind, that the base.Initialize method is in ProviderBase class which has the following exceptions defined:
Exceptions:
System.ArgumentException: The name of the provider has a length of zero.
System.InvalidOperationException: An attempt is made to call System.Configuration.Provider.ProviderBase.Initialize(System.String,System.Collections.Specialized.NameValueCollection) on a provider after the provider has already been initialized.
Isn't the last exception the one you get?