Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception message: "No message for error code .... found" instead of normal error messages [DNET162] #171

Closed
firebird-automations opened this issue Apr 25, 2008 · 13 comments

Comments

@firebird-automations
Copy link

Submitted by: Andre Grohmann (agrohmann)

Attachments:
Debug.7z

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.

@firebird-automations
Copy link
Author

Commented by: @cincuranet

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.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Cannot Reproduce [ 5 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Attachment: Debug.7z [ 10860 ]

@firebird-automations
Copy link
Author

Commented by: Andre Litfin (andrelitfin)

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

@firebird-automations
Copy link
Author

Commented by: @cincuranet

No. Error messages are build into FirebirdClient assembly.

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

@firebird-automations
Copy link
Author

Commented by: @cincuranet

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.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Closed [ 6 ] => Reopened [ 4 ]

resolution: Cannot Reproduce [ 5 ] =>

@firebird-automations
Copy link
Author

Commented by: Andre Litfin (andrelitfin)

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

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Sources are available in SVN.

@firebird-automations
Copy link
Author

Commented by: Andre Litfin (andrelitfin)

Hi Jiri, with rev 573 everything is working fine again (btw I've found the FAQ just after I wrote my prev. comment...)

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Reopened [ 4 ] => Closed [ 6 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5.0. Alpha 3 [ 10261 ]

Fix Version: 2.5.0 [ 10170 ]

@firebird-automations
Copy link
Author

Commented by: Giovanni (duco)

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.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Fix Version: 2.5.0 [ 10170 ] =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants