title: .NET 2012 Connect to Firebird Database
body: <p>I am having trouble connecting to a Firebird Database using VB.NET 2012.  I downloaded the Firebird Entity Framework Provider through the NuGet Package Manager.</p>
  
  <p>I checked and the following References have been added to the project:</p>
  
  <p>EntityFramework, EntityFramework.Firebird, EntityFramework.SqlServer and FirebirdSql.Data.FirebirdClient.</p>
  
  <p>When I run the program, the Output windows displays the following: </p>
  
  <pre><code>A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
  A first chance exception of type 'FirebirdSql.Data.Common.IscException' occurred in FirebirdSql.Data.FirebirdClient.dll
  A first chance exception of type 'FirebirdSql.Data.FirebirdClient.FbException' occurred in FirebirdSql.Data.FirebirdClient.dll
  A first chance exception of type 'FirebirdSql.Data.FirebirdClient.FbException' occurred in FirebirdSql.Data.FirebirdClient.dll
  </code></pre>
  
  <p>I don't get any errors displayed in the application, but nothing happens</p>
  
  <p>Here is my code:</p>
  
  <pre><code>Imports FirebirdSql.Data.FirebirdClient
  Imports System.Text
  Imports System.Net
  
  Public Class Form1
  
      Dim con As FbConnection
      Dim cs As FbConnectionStringBuilder
  
      Public Sub New()
  
          InitializeComponent()
  
          cs = New FbConnectionStringBuilder
          cs.Database = "C:\database.fdb"
          cs.ServerType = FbServerType.Default
          cs.UserID = "SYSDBA"
          cs.Password = "password"
  
      End Sub
  
      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
  
          con = New FbConnection(cs.ToString)
          con.Open()
  
          Dim sCmd As FbCommand
          Dim sql As String
          Dim ds As FbDataReader
  
          sql = "SELECT something FROM TABLE"
  
          sCmd = New FbCommand()
          sCmd.Connection = con
          sCmd.CommandText = sql
          ds = sCmd.ExecuteReader
  
          Dim str As New StringBuilder
  
          While (ds.Read)
  
              MsgBox(ds.GetString(0))
  
          End While
  
          ds.Close()
  
          End
  
      End Sub
  
  End Class
  </code></pre>
  
  <p>I have experimented running various versions of Firebird but I really need some help.</p>