Bad message error received
--------------------------

                 Key: DNET-116
                 URL: http://tracker.firebirdsql.org/browse/DNET-116
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 2.1.0 RC 1, 2.1.0 Beta 3, 2.1.0 Beta 2, 2.1.0 Beta 1, 
2.0.1, 2.0.1 RC2, 2.0.1 RC 1, 2.0, 1.7.1, 1.6, 2.1.0 RC 2, 2.1.0
         Environment: Windows XP
Firebird 1.5.3 and 2.0.1
            Reporter: Thomas Gaboriau
            Assignee: Carlos Guzman Alvarez


In this case :
try
      {
        FbBackup fbBackup = new FbBackup();
        fbBackup.ConnectionString = @"DataSource=localhost;Database=C:\Program 
Files\Firebird\Firebird_1_5\examples\EMPLOYEE.FDB; " +
          "User=user;Password=password;Role=;Port=3050;Connection 
lifetime=;Connection timeout=;"+
          "Pooling=true;MaxPoolSize=1;Dialect=3;Charset=NONE;Packet 
Size=8192;Server Type=0;";

        //I specify 2 backup files with the same name
        fbBackup.BackupFiles.Add(new FbBackupFile("samename.fbk", 1048576));
        fbBackup.BackupFiles.Add(new FbBackupFile("samename.fbk", 0));

        fbBackup.Execute();
      }
      catch ( FbException e )
      {
        //Message of the catched exception should be "multiple sources or 
destinations specified" ( ErrorCode of the IscException = 336330761 )
        //but I receive "invalid BLOB ID" ( ErrorCode of the IscException = 9 
??)
        Console.WriteLine(e.ErrorCode + " | " + e.Message);
      }

Like the bug doesn't appear with the version 2.5 Alpha 1, I compare the sources 
and I noticed that the method "Identify" doesn't exist to create a 
GdsServiceManager but it's called in GdsDataBase. 
So if I recopy this method in GdsServiceManager and I called it in the Method 
"Attach", the good exception is thrown.



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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to