You are right - I do have a class called MyMembershipProvider. When I use my original web config settings (where I call out the the duplicate connection string setting), it works great. I am just trying to have the MembershipProvider use a reference to my <connectionstrings> section. Here is what the MyMembershipProvider.vb file looks like:
Imports Microsoft.VisualBasic
Imports System.Data
Imports System.Data.SqlClient
Imports Project_Management.Functions 'This was required to access the e-mail function in this class (?)
Public Class MyMembershipProvider
Inherits MembershipProvider
'---for database access use---
Private connStr As String 'Connection string (populated on Initialize)
Private _requiresQuestionAndAnswer As Boolean
Private _minRequiredPasswordLength As Integer
Public Overrides Sub Initialize(ByVal name As String, ByVal config As System.Collections.Specialized.NameValueCollection)
'===retrives the attribute values set in
'web.config and assign to local variables===
If config("requiresQuestionAndAnswer").ToUpper = "TRUE" Then _
_requiresQuestionAndAnswer = True
connStr = config("connectionString")
MyBase.Initialize(name, config)
End Sub
James, I did try what you suggested, but I still got the same error. Could you use the examples in my earlier post to show me exactly what you mean? Thank you!