Catch Exception - Unable to complete network request

20 views
Skip to first unread message

cte...@gmail.com

unread,
Apr 20, 2024, 1:16:07 PMApr 20
to firebird-net-provider
I'm recompiling some code, after installing Win11 --- C# WPF Visual Studio.

An error message:  Catch exception ... Unable to complete network request to host "xnet://Global\FIREBIRD".

Please advise.

Jiří Činčura

unread,
Apr 20, 2024, 1:29:32 PMApr 20
to 'Mr. John' via firebird-net-provider
Protocol xnet is not supported by FirebirdClient. You should ask in firebird-support list and also provide more information.

--
Mgr. Jiří Činčura
https://www.tabsoverspaces.com/
> --
> You received this message because you are subscribed to the Google
> Groups "firebird-net-provider" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to firebird-net-pro...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/firebird-net-provider/4f761bf2-2ada-4dd9-8dbc-68ca53b66810n%40googlegroups.com
> <https://groups.google.com/d/msgid/firebird-net-provider/4f761bf2-2ada-4dd9-8dbc-68ca53b66810n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Clyde Eisenbeis

unread,
Apr 20, 2024, 2:15:22 PMApr 20
to firebird-n...@googlegroups.com
Thanks for responding!

I'm not sure why xnet is listed in the error message.  My code only contains "using FirebirdSql.Data.FirebirdClient".

What is the link to the firebird-support list?  Again, thanks!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Mark Rotteveel

unread,
Apr 21, 2024, 4:59:58 AMApr 21
to firebird-n...@googlegroups.com
This error means that your fbclient.dll doesn't have access to
plugins/engineXX.dll (where XX is 12 for Firebird 3.0, 13 for Firebird
4.0 or Firebird 5.0), so it can't load Firebird embedded, and instead
tries to fallback to XNET to connect to the localhost Firebird server.

It could also mean that you have a fbclient.dll of the wrong bitness, so
it loads a different one than you expect.

Mark
--
Mark Rotteveel

cte...@gmail.com

unread,
Apr 21, 2024, 9:10:52 AMApr 21
to firebird-net-provider
"This error means that your fbclient.dll doesn't have access to plugins/engineXX.dll ...."  

What should I do to fix this?  While I use Firebird daily,  I have not compiled for a few years.

Thanks!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Mark Rotteveel

unread,
Apr 21, 2024, 9:20:42 AMApr 21
to firebird-n...@googlegroups.com
On 21/04/2024 15:10, cte...@gmail.com wrote:
> "/This error means that your fbclient.dll doesn't have access to
> //plugins/engineXX.dll ..../"
>
> What should I do to fix this?  While I use Firebird daily,  I have not
> compiled for a few years.

Do you have an fbclient.dll and plugins/engineXX.dll in your project? If
so, what is their bitness? Verify with process monitor which
fbclient.dll it actually loaded. Maybe you recompiling changed the
process from 32-bit to 64-bit or vice versa, and now it is loading a
different library than the one intended.

Mark
--
Mark Rotteveel

cte...@gmail.com

unread,
Apr 21, 2024, 9:41:09 AMApr 21
to firebird-net-provider
I have always used fbclient.dll.  I have never used engineXX.dll.  I always use 64 bit. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Mark Rotteveel

unread,
Apr 21, 2024, 9:49:50 AMApr 21
to firebird-n...@googlegroups.com
On 21/04/2024 15:41, cte...@gmail.com wrote:
> I have always used fbclient.dll.  I have never used engineXX.dll.  I
> always use 64 bit.

If you're using a Firebird 3.0 or higher Firebird embedded, then you are
using fbclient.dll *and* plugins/engineXX.dll. If you are expecting it
to use an older version of Firebird (which had everything in
fbembed.dll, which you have renamed to fbclient.dll), than that points
to a similar problem, because the error makes clear it's loading a
Firebird 3.0 or higher fbclient.dll.

Mark
--
Mark Rotteveel

cte...@gmail.com

unread,
Apr 21, 2024, 9:53:20 AMApr 21
to firebird-net-provider
What action do I need to take so I can use Firebird again?  What do I need to do, to download and install the latest versions?  Thanks!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cte...@gmail.com

unread,
Apr 21, 2024, 10:27:53 AMApr 21
to firebird-net-provider
I installed Firebird-5.0.0.1306-0-windows-x64.exe.   

1) Do I just replace the old fbclient.dll with the new fbclient.dll under C:\Program Files\Firebird\Firebird_5_0? 

2) There are quite a few files under C:\Program Files\Firebird\Firebird_5_0\plugins.  Do I copy the engine13.dll file to my code?  Do I need the folder "plugins" too?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Mark Rotteveel

unread,
Apr 21, 2024, 10:58:48 AMApr 21
to firebird-n...@googlegroups.com
On 21/04/2024 16:27, cte...@gmail.com wrote:
> I installed Firebird-5.0.0.1306-0-windows-x64.exe.
>
> 1) Do I just replace the old fbclient.dll with the new fbclient.dll
> under C:\Program Files\Firebird\Firebird_5_0?
>
> 2) There are quite a few files under C:\Program
> Files\Firebird\Firebird_5_0\plugins.  Do I copy the engine13.dll file to
> my code?  Do I need the folder "plugins" too?

You need to copy at least fbclient.dll and plugins/engine13.dll, and you
need to preserve that plugins folder relative to fbclient.dll.

Mark
--
Mark Rotteveel

cte...@gmail.com

unread,
Apr 21, 2024, 11:34:45 AMApr 21
to firebird-net-provider
Not sure what "preserve" means.  Looking at my old code (from 2017) I see:

1) "FirebirdSql.Data.FirebirdClient" listed in Visual Studio -> References.
2) "using FirebirdSql.Data.FirebirdClient" at the top of the code.
3) "fbclient.dll" is in the folder -> ...\bin\Debug\fb\

For a new program, I always did 1) and 2), then copied "fbclient.dll" to the new program.

4) For my existing program, do I just leave 1) and 2) alone?
5) Copy the new "fbclient.dll" to the ...\bin\Debug\fb\ folder?
6) Add "engine13.dll" to a ...\bin\Debug\plugins\ folder?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cte...@gmail.com

unread,
Apr 23, 2024, 10:59:30 AMApr 23
to firebird-net-provider
I found a good solution.  I copied the fb folder / contents from a program that still works to the Visual Studio ...\bin\Debug\fb\ folder.  Visual Studio compiles again!

Thanks, Mark Rotteveel, for clarifying the new versions of Firebird.  This helped me realize that old versions still work!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reply all
Reply to author
Forward
0 new messages