I have following connection string in my web.config file
I get following database error after hosting my site at hostgator
At my local computer application works perfectly file but not at hostgator
Do i need to do some modification in connection string?
Code:
<add name="ConnectionStringUsersdb" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\usersdb.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
<add name="ConnectionStringFilesdb" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\filesdb.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
I get following database error after hosting my site at hostgator
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
At my local computer application works perfectly file but not at hostgator
Do i need to do some modification in connection string?