vb.net - .NET 2012 Connect to Firebird Database -


i having trouble connecting firebird database using vb.net 2012. downloaded firebird entity framework provider through nuget package manager.

i checked , following references have been added project:

entityframework, entityframework.firebird, entityframework.sqlserver , firebirdsql.data.firebirdclient.

when run program, output windows displays following:

a first chance exception of type 'system.net.sockets.socketexception' occurred in system.dll first chance exception of type 'firebirdsql.data.common.iscexception' occurred in firebirdsql.data.firebirdclient.dll first chance exception of type 'firebirdsql.data.firebirdclient.fbexception' occurred in firebirdsql.data.firebirdclient.dll first chance exception of type 'firebirdsql.data.firebirdclient.fbexception' occurred in firebirdsql.data.firebirdclient.dll 

i don't errors displayed in application, nothing happens

here code:

imports firebirdsql.data.firebirdclient imports system.text imports system.net  public class form1      dim con fbconnection     dim cs 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 object, e eventargs) handles me.load          con = new fbconnection(cs.tostring)         con.open()          dim scmd fbcommand         dim sql string         dim ds fbdatareader          sql = "select table"          scmd = new fbcommand()         scmd.connection = con         scmd.commandtext = sql         ds = scmd.executereader          dim str new stringbuilder          while (ds.read)              msgbox(ds.getstring(0))          end while          ds.close()          end      end sub  end class 

i have experimented running various versions of firebird need help.

the answer simple. because using firebird client servertype should have been set embedded because includes special client library includes server itself.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -