When starting a new project that required the use of membership providers I found that I could not connect to a remote database that contained the membership database.
After much searching I found that the default Membership Provider specified in machine.config (c:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG) was always pointing to a SQL Server running on the localhost.
Instead of modifying machine.config there is a way to set it up in the projects web.config:
1) Setup the connection string to the remote database
2) In
redefine the default provider:
The
is key! All the other key/values were taken directly from machine.config