I uploaded my site to godaddy and I keep getting this when I sign into my site:
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)
I have seen this in a previous post but I am not sure how this applies to my site, here is my connection string
<connectionStrings>
<clear />
<add name="AspnetdbConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\GNJDB.MDF;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
<add name="GNJDBConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\GNJDB.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
So do I delete this and replace it with this:
connectionStrings>
<add name="Personal" connectionString=" Server=p3swhsql-v07.shr.phx3.secureserver.net; Database=Personal; User ID=yourusername; Password=yourpassword; Trusted_Connection=False" providerName="System.Data.SqlClient"/>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString=" Server=p3swhsql-v07.shr.phx3.secureserver.net; Database=ASPNETDB; User ID=yourusername; Password=yourpassword; Trusted_Connection=False" providerName="System.Data.SqlClient"/>
</
connectionStrings>
I am new to this so I didn't even know I had to change anything in my web.config file and godaddy didn't say anything either.
Thanks to anyone who can help me become less confused
rogriall79