I have the following problem when trying to connect from my Web Role instance to the Azure SQL Database:
[SqlException (0x80131904): 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)]
My connection string:
metadata=res:///MyModel.csdl|res:///MyModel.ssdl|res://*/MyModel.msl;provider=System.Data.SqlClient;provider connection string='data source=SOMETHING.database.windows.net,1433;initial catalog=DBNAME;User ID=USERNAME@SOMETHING;Password=PASS!;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;'
I have also linked the database with my Web Role and added the allowable IP. I can connect from using SQL Server Management Studio.
Could there be another problem here?
allowed ip addresses
list in the portal? – haim770allowd ip addresses
? – haim770