Bit of a puzzle here.
I have a Windows Server 2008 running IIS7 and MS SQL Server 2008 R2. I have opened up the neccessary ports on the firewall and enabled the correct SQL Server configuration options to allow remote connections.
I have proven this works by being able to connect both in SQL Server Management Studio Express and VS 2010 from my dev machine. However, when I upload my site to the server, it bugs out attempting to connect to the database - using the very same connection string that works on my dev machine.
Data Source=MY.IP.ADD.DDRE.SS;Initial Catalog=relenster_v2_updated;Persist Security Info=True;User ID=<username>;Password=<mypassword>
The error I'm picking up is:
provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
Any ideas?
UPDATE: SQL Server and IIS are on the same machine
My Dev machine is totally separate