When I use code:
FbRestore restore = new FbRestore();
restore.ConnectionString = @"data source=localhost;initial catalog=" + restoreDB + ";user id=SYSDBA;password=masterkey";
restore.BackupFiles.Add(new FbBackupFile(backupFile, 4096));
<//restore.Verbose> = true;
restore.PageSize = 4096;
restore.Options = FbRestoreFlags.Create | FbRestoreFlags.Replace;
restore.ServiceOutput += new ServiceOutputEventHandler(restore_ServiceOutput);
restore.Execute();
everything is OK. When I uncomment the .Verbose line, the exception (IscException) is thrown (at FirebirdSql.Data.Client.Gds.GdsConnection.ReadStatusVector() in <snip>\FirebirdClient-2.1.0-RC2-Src\NETProvider\source\FirebirdSql\Data\Client\Gds\GdsConnection.cs:line 271)
Submitted by: @cincuranet
Assigned to: @carlosga
When I use code: FbRestore restore = new FbRestore(); restore.ConnectionString = @"data source=localhost;initial catalog=" + restoreDB + ";user id=SYSDBA;password=masterkey"; restore.BackupFiles.Add(new FbBackupFile(backupFile, 4096)); <//restore.Verbose> = true; restore.PageSize = 4096; restore.Options = FbRestoreFlags.Create | FbRestoreFlags.Replace; restore.ServiceOutput += new ServiceOutputEventHandler(restore_ServiceOutput); restore.Execute(); everything is OK. When I uncomment the .Verbose line, the exception (IscException) is thrown (at FirebirdSql.Data.Client.Gds.GdsConnection.ReadStatusVector() in <snip>\FirebirdClient-2.1.0-RC2-Src\NETProvider\source\FirebirdSql\Data\Client\Gds\GdsConnection.cs:line 271)