question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to Connect to SQL Azure

See original GitHub issue

I am using ASP.NET 5 on Mac OS X. I am trying to connect to my SQL Azure Database using the following code:

var serverName = "[protected]";
var dbName = "[protected]";
var userId = "[protected]";
var password = "[protected]";
var sql = "SELECT * FROM Customer";

using (var database = new SqlConnection("Server=tcp." + serverName + ".database.windows.net,1433;Database=" + dbName + ";User Id=" + userId + ";Password=" + password + ";Trusted_Connection=False;Encrypt=True;Max Pool Size=25"))
{
  database.Open();
  return await database.QueryAsync<T>(sql);                     
}

When this code gets executed, an exception is thrown. The exception details looks like this:

Type:
System.NotImplementedException

Message:
SSL encryption for data sent between client and server is not implemented.

It seems like developers cannot interact with SQL Azure databases from ASP.NET 5 running on Mac OS X. This is a HUGE issue.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
paranoid-androidcommented, May 31, 2015

Ouch. It doesn’t seem right to say the Entity Framework is cross-platform when connecting to a SQL Azure database isn’t an option.

0reactions
ErikEJcommented, Aug 30, 2017

@paranoid-android So let us assume this works with .NET Core as stated above, then?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot common connection issues to Azure SQL ...
These connection problems can be caused by reconfiguration, firewall settings, a connection timeout, incorrect login information, or failure to ...
Read more >
Cannot connect to Azure SQL database, even with ...
I am currently unable to connect to my Azure SQL database from a separate remote standalone dedicated box in a private datacenter.
Read more >
How to access azure sql database from local machine
In this video, we will discuss how to connect and access azure SQL database from your local machine using SQL Server Management Studio...
Read more >
sql server - Connection issues with Azure DB from SSMS
Connection issues with Azure DB from SSMS · Check and retyped server name, login and password · Enable all SQL Server Config protocol...
Read more >
Unable to Connect to Azure SQL Database
We are unable to connect to an Azure SQL Database (12.0.2) through ArcGIS Pro (2.4 & 2.6.1), we are using the most recent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found