Issue Details (XML | Word | Printable)

Key: DNET-162
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jiri Cincura
Reporter: Andre Grohmann
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.
.NET Data provider

Exception message: "No message for error code .... found" instead of normal error messages

Created: 25/Apr/08 03:18 AM   Updated: 07/Feb/09 11:58 AM
Component/s: None
Affects Version/s: 2.5.0 Alpha 2
Fix Version/s: 2.5.0 Beta 1

File Attachments: 1. File Debug.7z (274 kB)

Firebird Superserver

 Description  « Hide
There is a Problem with the exception messages in version 2.5.0 (Subversion Revision 559).

For Example if the DataSource in the connection string is set to a wrong
value / host, the message of the raised exception looks like:
"No message for error code 335544721 found"

Nearly every exception message I have seen looks like this, respectively
with another error code.

When using .NET Provider 2.1.0 it works fine. The exception message looks
like "Unable to complete network request to host ...".

Sample Code:

static void Main(string[] args)
            FbConnectionStringBuilder csb = new FbConnectionStringBuilder();
            csb.DataSource = "localhost";
            csb.Dialect = 3;
            csb.Database = "C:\\temp\\TEST.GDB";
            csb.UserID = "SYSDBA";
            //wrong password
            csb.Password = "**********";

            FbConnection con = new FbConnection(csb.ToString());

            catch (Exception ex)
                if (con != null)

exception message with version 2.1.0 is:
Your user name and password are not defined. Ask your database administrator to set up a firebird login.

with version 2.5.0:
No message for error code 335544472 found.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jiri Cincura added a comment - 26/Apr/08 04:06 AM - edited
I've tried it with current SVN version of provider and I get right exception message. Tested on WinXP SP2 EN 32bit and Win Vista 64bit EN. Check the attached app.

Jiri Cincura made changes - 26/Apr/08 04:06 AM
Field Original Value New Value
Resolution Cannot Reproduce [ 5 ]
Status Open [ 1 ] Closed [ 6 ]
Jiri Cincura made changes - 26/Apr/08 04:08 AM
Attachment Debug.7z [ 10860 ]
Andre Litfin added a comment - 07/May/08 09:38 AM
I have the same problem in my app with version 2.5.0. Where does the Client search for the message file? With 2.1 everything works fine...

Jiri Cincura added a comment - 07/May/08 09:59 AM
No. Error messages are build into FirebirdClient assembly.

I still have no working sample, and on all my test machines this simply works.

Jiri Cincura added a comment - 07/May/08 10:32 AM
Looks like I've found the problem. The packed build doesn't have the resources. Could somebody please test build from ? This seesm to be working fine, for me.


Jiri Cincura made changes - 07/May/08 10:32 AM
Resolution Cannot Reproduce [ 5 ]
Status Closed [ 6 ] Reopened [ 4 ]
Andre Litfin added a comment - 08/May/08 07:10 AM
Hi Jiri, thanks, in a sample application everything works fine. Can you provide the sources because I've slightly modified them to better suit my needs or what can I do to embedd the ressources myself?
Thanks in advance, Andre

Jiri Cincura added a comment - 08/May/08 07:38 AM
Sources are available in SVN.

Jiri Cincura made changes - 10/May/08 12:59 PM
Comment [ Hi Jiri, I haven't accessed a repository before. I installed tourtoiseSVN now but I can't download the sources. Can you help me? I always get the error "Error * PROPFIND request failed on '/viewvc/firebird' PROPFIND of '/viewvc/firebird': 301 Moved (" ]
Andre Litfin added a comment - 10/May/08 01:31 PM
Hi Jiri, with rev 573 everything is working fine again (btw I've found the FAQ just after I wrote my prev. comment...)

Jiri Cincura made changes - 10/May/08 01:44 PM
Fix Version/s 2.5.0. Alpha 3 [ 10261 ]
Status Reopened [ 4 ] Closed [ 6 ]
Fix Version/s 2.5.0 [ 10170 ]
Resolution Fixed [ 1 ]
Jiri Cincura made changes - 10/Jun/08 01:11 PM
Comment [ It works fine w/ .NET 3.5, but why this subversion lost .NET 2.0 compatibility? I'm getting:

Could not load file or assembly 'System.Core, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. ]
Giovanni added a comment - 17/Jun/08 01:27 PM
i've got the test build but i still can't get the error message, it show me the following error:

No message for error code 335544466 found.

Jiri Cincura made changes - 07/Feb/09 11:58 AM
Fix Version/s 2.5.0 [ 10170 ]