I still get the following error message:
Cannot attach to services manager service localhost:service_mgr is not
defined
How do I fix this?
Zvjezdan Tomicevic wrote:
This works for me:
public void GenerateBackup()
{
FbBackup backupSvc = new FbBackup();
backupSvc.ConnectionString =
Properties.Settings.Default.ConnectionString;
string filePath = "C:\backup.fbk";
backupSvc.BackupFiles.Add(new FbBackupFile(filePath, 2048));
backupSvc.Verbose = true;
backupSvc.Options = FbBackupFlags.IgnoreLimbo;
backupSvc.ServiceOutput += new
ServiceOutputEventHandler(ServiceOutput);
backupSvc.Execute();
}
void ServiceOutput(object sender, ServiceOutputEventArgs e)
{
listBox1.Items.Add(e.Message);
Application.DoEvents();
}
Hope this helps.
On Tue, Feb 17, 2009 at 7:14 PM, Rolf Marsh <rmma...@fastmail.us
<mailto:rmma...@fastmail.us>> wrote:
HI Juergen... OK... I'll just leave it at 2048... my major problem
is that I'm getting a message "Cannot attach to services manager
service :service_mgr is not defined" when I try any of the
examples at
http://fisheye1.atlassian.com/browse/firebird/NETProvider/NETProvider_17/source/FirebirdSql.Data.Firebird.UnitTest/FbServicesTests.cs?r=1.10
... any idea of where to find out how to fix this? (I have looked
everywhere on the web, found mentions of it, but nothing to
indicate how to fix it).
I really appreciate your help...
Rolf
VS-Polis wrote:
Hi Rolf,
I read in the Firebird ADO.NET <http://ADO.NET> Provider SDK
Documentation and don't understand this property. The only
information I found was an example in the FbBackup class:
"backupSvc.BackupFiles.Add(new FbBackupFile(@"c:\testdb.gbk",
2048)); "
In the IBExpert documentation I found this information:
"A file size only needs to be specified when working with
secondary files."
I suppose this value is unimportant normally.
Juergen
Rolf Marsh schrieb:
I took a look at FirebirdSql.Data.FIrebird.Services namespace, and
decided to try the FbBackup method as a test. In the BackupFiles
method, it asks for the output filename and size... how does one
determine what the size of the output file is going to be prior to doing
the backup?
Rolf
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
<mailto:Firebird-net-provider@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
--
*_Juergen Thomas_*
Verlags-Software
Samlaendische Str. 3
13189 Berlin
Germany
------------------------------------------------------------------------
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA -OSBC tackles the biggest issue in open source:
Open Sourcing the Enterprise -Strategies to boost innovation and
cut costs with open source participation -Receive a $600 discount
off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
------------------------------------------------------------------------
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
<mailto:Firebird-net-provider@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
<mailto:Firebird-net-provider@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
------------------------------------------------------------------------
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
------------------------------------------------------------------------
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider