From: Thomas <ja...@ma...> - 2004-03-29 20:54:16
|
Have anyone tried to use the FirebirdNet Provider 1.6 (beta1), and the embedded server in a .NET WebApp ? I get this error when trying to open a connection: (using serverType=1) "Unable to load DLL (fbembed)".. Any help? |
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"> |
From:
<car...@te...> - 2005-01-29 20:03:45
|
Hello: >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. > Can you try by copying the provider assembly in the same directory as the fbembed.dll (the installer installs it in the GAC) -- Best regards Carlos Guzmán Álvarez Vigo-Spain "In the end there can be only one" (Highlander) |
From: Todd D. <to...@gm...> - 2005-01-29 20:23:31
|
Hi Carlos, Thanks for responding, I was going to write to you next :) Yes, I copied the provider to the local /bin and changed my reference to there. Now I have a little more info - I can get it working fine in a Windows App. The problem only seems to exist in a web app. (ASP.NET). At this point, I tried putting fbembed.dll in the web app's /bin directory, in the web app directory, in the wwwroot/bin directory, and even in the directory the provider installed in (under /Program Files/). No matter what I do, it just can't be "found", and I'm very confused. I saw a message on the SourceForge forums that someone else had this error with ASP.NET apps, but he was mentioning an Alpha build. DO you have any more info on this? Thanks so much On Sat, 29 Jan 2005 19:46:14 +0100, Carlos Guzm=E1n =C1lvarez <car...@te...> wrote: > Hello: >=20 > >Hi - I just downloaded FireBird Embedded (Firebird-1.5.2.4731_embed_win3= 2) > >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. > > > Can you try by copying the provider assembly in the same directory as > the fbembed.dll > (the installer installs it in the GAC) >=20 > -- > Best regards >=20 > Carlos Guzm=E1n =C1lvarez > Vigo-Spain >=20 > "In the end there can be only one" (Highlander) >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Firebird-net-provider mailing list > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider >=20 --=20 -Todd Davis <img src=3D"http"//www.seaburydesign.com/cert.jpg"> |
From:
<car...@te...> - 2005-02-01 21:26:34
|
Hello: >Thanks for responding, I was going to write to you next :) > >Yes, I copied the provider to the local /bin and changed my reference >to there. Now I have a little more info - I can get it working fine in >a Windows App. The problem only seems to exist in a web app. >(ASP.NET). > I can't test it with ASP.NET now, but maybe what is needed is to copy it inside the .NET runtime directory (or in a directory that is in the path but on this way you will, probably, run on problems if you try to is a character set different than NONE) -- Best regards Carlos Guzmán Álvarez Vigo-Spain "Todos somos muy ignorantes. Lo que ocurre es que no todos ignoramos las mismas cosas." Albert Einstein |
From:
<car...@te...> - 2004-03-29 21:21:45
|
Hello: > Have anyone tried to use the FirebirdNet Provider 1.6 (beta1), and the > embedded server in a .NET WebApp ? > > I get this error when trying to open a connection: (using serverType=1) > > "Unable to load DLL (fbembed)".. You have this problem with Alpha 1 too ?? How you have installed the embedded server ?? -- Best regards Carlos Guzmán Álvarez Vigo-Spain |