c# - Firebird Database with Visual Studio 2008 not working -


i on windows 7 visual studio 2008. installed firebird 3.0 (the latest version), , wanted connect database using c#. installed firebird ddex visual studio 2008. however, when tried add firebirdsql.data.firebirdclient.dll reference in project, gave yellow triangle exclamation mark inside.

some old stack overflow solutions said should install older version of firebird, uninstalled version 3.0, , replaced version 2.5.2. have firebirdsql.data.firebirdclient.dll added reference without yellow triangle problem.

however, looks not issue. wrote program similar this example:

string connectionstring =     "user=sysdba;" +     "password=masterkey;" +     "database=temp.fdb;" +     "datasource=localhost;" +     "port=3050;" +     "dialect=3;" +     "charset=none;" +     "role=;" +     "connection lifetime=15;" +     "pooling=true;" +     "minpoolsize=0;" +     "maxpoolsize=50;" +     "packet size=8192;" +     "servertype=0";  fbconnection myconnection = new fbconnection(connectionstring);  try{     // open connection     messagebox.show("open connection");     myconnection.open();      // close connection     messagebox.show("close connection");     myconnection.close(); } catch(exception ex){     messagebox.show(ex.message);  } 

i have temp.fdb in application directory. have created database , table data in using command prompt. however, gives error:

i/o error during "createfile(open)" operation file "temp.fdb" error while trying open file.

i changed servertype 0 1, , got new error:

unable load dll 'fbembed': specified module not found. (exception hresult: 0x8007007e)".

when try add fbembed.dll reference, gives following error:

a reference '.....\bin\fbembed.dll' not added. please make sure file accessible, , valid assembly or com component

when did research on this, found need have icu*.dll's, intl folder, , udf folder in application directory well. moved of application directory, still getting same error.

can give me advice on how fix issue?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -