I created a custom membership provider in my ASP.NET 4.0 web site, stored in App_Code, and referenced in my web.config.
However, it doesn't appear to be pulling values out of web.config during initialization.
The code was taken from http://www.asp.net/general/videos/how-do-i-create-a-custom-membership-provider, and the only modifications were changing "connectionStringName" here to the name of my connection string:
Dim ConnectionStringSettings As ConnectionStringSettings = _
The connection string always comes back as nothing in this line:
If ConnectionStringSettings Is Nothing OrElse ConnectionStringSettings.ConnectionString.Trim() = String.Empty Then
Throw New ProviderException("Connection string cannot be blank.")
No matter what I change the password format to in web.config, the default value here is always used:
Dim temp_format As String = config("passwordFormat")
If temp_format Is Nothing Then
temp_format = "Has
View Complete Post