Initialize
This method initializes the OracleMembership provider with the property values specified in the ASP.NET application configuration file (web.config).
Declaration
// C# public override void Initialize(string name, NameValueCollection config);
Parameters
-
nameThe name of the
OracleMembershipprovider instance to initialize. -
configA collection of name/value pairs representing the provider-specific attributes specified in the configuration for this provider.
Exceptions
ArgumentNullException - The config parameter is a null value.
InvalidOperationException - An attempt is made to call the Initialize method on a provider after the provider has already been initialized.
HttpException - The current trust level is less than Low.
System.Configuration.Provider.ProviderException - One of the following is true in the application configuration file:
-
The
enablePasswordRetrieval,enablePasswordReset,requiresQuestionAndAnswer, orrequiresUniqueEmailattribute is set to a value other than a Boolean value. -
The
maxInvalidPasswordAttemptsorpasswordAttemptWindowattribute is set to a value that is not a positive integer. -
The
minRequiredPasswordLengthattribute is set to a value that is not a positive integer, or the value is greater than 128. -
The
minRequiredNonalphanumericCharactersattribute is set to a negative integer, or the value is greater than 128. -
The value for the
passwordStrengthRegularExpressionattribute is not a valid regular expression. -
The value for the
applicationNameattribute is greater than 256 characters. -
The value for
passwordFormatattribute is an invalidMembershipPasswordFormatenumeration value. -
The
passwordFormatattribute is set toHashed, and theenablePasswordRetrievalattribute is set totrue. -
The
passwordFormatattribute is set toEncrypted, and themachineKeyconfiguration element specifiesAutoGeneratefor thedecryptionKeyattribute. -
The
connectionStringNameattribute is empty or does not exist in the application configuration file. -
The value of the connection string for the
connectionStringNameattribute value is empty, or the specifiedconnectionStringNamedoes not exist in the application configuration file. -
The value for the
commandTimeoutattribute is set to a negative integer. -
The application configuration file for this
OracleMembershipProviderinstance contains an unrecognized attribute.
Remarks
The Initialize method is not intended to be called directly by the application.