From: Todd D. <to...@gm...> - 2005-01-29 17:07:58
|
Hi - I just downloaded FireBird Embedded (Firebird-1.5.2.4731_embed_win32) and the ADO.NET provider (firebirdNETProvider-1.6.3-NET1.1.exe). I installed the provider and rebooted. Then I created a new .NET web app, copied the FireBird *.dlls to the /bin directory of the app (fbembed.dll, ib_utildll and firebird.msg) and then ran the app, trying to create a new database. Here is my code in VB.NET: Imports FirebirdSql.Data.Firebird .. .. Dim parameters As Hashtable = New Hashtable parameters.Add("User", "SYSDBA") parameters.Add("Password", "masterkey") parameters.Add("Database", "mydb.fdb") parameters.Add("ServerType", 1) FbConnection.CreateDatabase(parameters) When I get to the last line, it produces the error message in the subject. I also tried this in a Windows Forms app, and had the same result. I'm not sure what to do? Why can't it find the dll? Just FYI, I also tried the beta ADO.NET driver, and I also made sure that the <machinename>\ASPNET role has full access to the directories in question. [DllNotFoundException: Unable to load DLL (fbembed).] FirebirdSql.Data.Embedded.FbClient.isc_create_database(Int32[] statusVector, Int16 dbNameLength, String dbName, Int32& dbHandle, Int16 parmBufferLength, Byte[] parmBuffer, Int16 dbType) +0 FirebirdSql.Data.Embedded.FesDbAttachment.CreateDatabase(AttachmentParams parameters, DpbBuffer c) FirebirdSql.Data.Firebird.FbConnection.CreateDatabase(Hashtable values) FireBird.WebForm1.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\FireBird\WebForm1.aspx.vb:38 System.Web.UI.WebControls.Button.OnClick(EventArgs e) System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) System.Web.UI.Page.ProcessRequestMain() -- -Todd Davis <img src="http"//www.seaburydesign.com/cert.jpg"> |