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
Comments
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. |
Modified by: @cincuranetAttachment: Debug.7z [ 10860 ] |
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... |
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. |
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. |
Modified by: @cincuranetstatus: Closed [ 6 ] => Reopened [ 4 ] resolution: Cannot Reproduce [ 5 ] => |
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? |
Commented by: @cincuranet Sources are available in SVN. |
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...) |
Modified by: @cincuranetstatus: Reopened [ 4 ] => Closed [ 6 ] resolution: Fixed [ 1 ] Fix Version: 2.5.0. Alpha 3 [ 10261 ] Fix Version: 2.5.0 [ 10170 ] |
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. |
Modified by: @cincuranetFix Version: 2.5.0 [ 10170 ] => |
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 = "**********";
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.
The text was updated successfully, but these errors were encountered: