From: Andre G. (JIRA) <tr...@fi...> - 2008-04-25 07:22:07
|
Exception message: "No message for error code .... found" instead of normal error messages ------------------------------------------------------------------------------------------ Key: DNET-162 URL: http://tracker.firebirdsql.org/browse/DNET-162 Project: .NET Data provider Issue Type: Bug Affects Versions: 2.5.0 Alpha 2 Environment: Firebird Superserver 2.1.0.17798 WinXP SP2 Reporter: Andre Grohmann Assignee: Jiri Cincura Priority: Minor 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. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |