My website is hosted remotely by a separate company, but I test it locally before launching anything
I wanted to set up an administrator portal for it, so I used WAT to configure membership/roles
It automatically created the database ASPNETDB.MDF and updated my web.config file
Everything worked fine locally, but after uploading it to the remote server, I got the error
An error has occurred while establishing a connection to
the server. When connecting to SQL Server 2005, this failure may be
caused by the fact that under the default settings SQL Server does not
allow remote connections. (provider: SQL Network Interfaces, error: 26
- Error Locating Server/Instance Specified)
So I started reading some articles on this issue and the steps that I've taken to try and correct this so far have been to start from scratch, delete the automatically created database and then use aspnet_regsql to create a new one
Then I used WAT to re-add my users/roles
Then I changed my web.config in the following areas
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="connection string provided by hosting company" providerName="System.Data.SqlClient=" />
</connectionStrings>
<authentication mode="Forms" />
<roleManager enabled="true">
<providers>
<clear />
<add connectionStringName="LocalSqlServer" applicationName="/"
name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add applicationName="/" name="AspNetWindowsTokenRoleProvider"
type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
applicationName="/"
/>
</providers>
</membership>
Then I uploaded the ASPNETDB.MDF and it's log file to the ~/App_Data directory and updated my web.config file on the remote server
Now when I try to log in, I no longer receive the error, but it's telling me that my credentials are incorrect
What's going on here?