title: vb.net server connection overloads
body: <p>I'm trying to run this code, but it displays the error "overload resolution failed".</p>
  
  <pre><code>Conn = New OleDbConnection(ConnectionString)    
  Dim serverConn As New Server(New ServerConnection(Conn))
  </code></pre>
  
  <p>Here is the full error:</p>
  
  <pre><code>Overload resolution failed because no accessible 'New' can be called with these arguments:
  'Public Sub New(serverInstance As String)': Value of type 'System.Data.OleDb.OleDbConnection' cannot be converted to 'String'.
  'Public Sub New(sqlConnection As System.Data.SqlClient.SqlConnection)': Value of type 'System.Data.OleDb.OleDbConnection' cannot be converted to 'System.Data.SqlClient.SqlConnection'.
  'Public Sub New(sci As Microsoft.SqlServer.Management.Common.SqlConnectionInfo)': Value of type 'System.Data.OleDb.OleDbConnection' cannot be converted to 'Microsoft.SqlServer.Management.Common.SqlConnectionInfo'.   
  </code></pre>