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
Operations

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)

Environment:
Firebird Superserver 2.1.0.17798
WinXP SP2


 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());

            try
            {
                con.Open();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            finally
            {
                if (con != null)
                {
                    con.Close();
                }
            }
            Console.ReadLine();
        }

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.

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 http://netprovider.cincura.net/ ? This seesm to be working fine, for me.

Thanks.

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.

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...)

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.