I have a SQL connection setup like this in web.config:
<connectionStrings>
<add name="MyConnectionString" connectionString="Data Source=SQLServer;Initial Catalog=DBName;User ID=domain\username;Password=password
providerName="System.Data.SqlClient" />
</connectionStrings>
On my dev machine all works fine, but when putting on web server I keep getting:
Inner Exception Type: System.ComponentModel.Win32Exception
Inner Exception: The network path was not found
Inner Source:
Exception Type: System.Data.SqlClient.SqlException
Exception: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
The web server has no problem reaching the SQL server, I am guessing there is something wrong with my connection string syntax.
Can anyone spot anything wrong?