title: System.InvalidOperationException: Internal Connection Fatal Error. when opening sql connection
body: <p>I've just started playing around with SQL on C#, and I'm trying to connect to a remote SQL server. I've added my IP to the list of hosts that have remote access permission.</p>
  
  <p>My code keeps producing this error:</p>
  
  <blockquote>
    <p>System.InvalidOperationException: Internal Connection Fatal Error.<br>
    at System.Data.SqlClient.TdsParserStateObject.TryPocessHeader&lt;><br>
    at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer&lt;><br>
    at System.Data.SqlClient.TdsParserStateObject.TryReadByteArray&lt;.Byte[] buff, Int32  offset, Int32 len, Int32&amp; totalRead></p>
  </blockquote>
  
  <p>The trace is actually longer than that, but those are the first few lines.</p>
  
  <p>This is the code that's causing the error (My actual connection string has the correct username, password, and database name):</p>
  
  <pre><code>connectionString = "Data Source=173.254.28.27,3306;Network Library=DBMSSOCN;Initial Catalog=myDatabase;User Id=myUserName;Password=myPassword;";
  using (SqlConnection myConnection = new SqlConnection(connectionString))
  {
      try { myConnection.Open(); }
      catch (Exception e) { Console.WriteLine(e.ToString()); }
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks!</p>