I have built a site in Visual Web developer Express 2005. it works fine on my local machine but when I load it up to the server I get the following error message:
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)
My connectionstring in my web config file:
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
I have enabled remote connections with TCP/IP only on my sql express SAC
I.ve tried hours to resolve this problem, Please help.