Welcome to the Xceed Community | Help
Community Search  
More Search Options

Problem with backup libraries

Sort Posts: Previous Next
  •  03-02-2007, 12:03 PM Post no. 6264

    Problem with backup libraries

    hi, i'm using visual studio 2005 and i'm programming in C#.
    during this instruction:
    BackupJob1.Selection = FileSelection1;
    (where fileSelection1 has only a path as property. added with addfilestoproccess)
    i always encounter this runtime problem:
    Exception from HRESULT: 0x800A017C (CTL_E_INVALIDPROPERTYVALUE)

    I also tried one of the sample in VB and it gives the same problem on the same line :)

    PS: in another thread i found a similar problem.. it was solved.. that user said that it was a missing object instantiating. In c# i have an auto generated class that creates graphic objects...

    escuse my poor english ^^
    where is the problem ? :(
  •  03-06-2007, 4:23 PM Post no. 6265 in reply to 6264

    Re: Problem with backup libraries

    Here is an example I built that should help you understand how to use the control in c#

    XceedBackupLib.FileSelection fs = new XceedBackupLib.FileSelectionClass();
    fs.AddFilesToProcess(@"c:\test\*.bak", false);

    XceedBackupLib.BackupJob job = new XceedBackupLib.BackupJobClass();
    job.BackupFolder = @"c:\test\backups\";
    job.BackupType = XceedBackupLib.bkpBackupType.bbtFull;
    job.CompressionLevel = XceedBackupLib.bkpCompressionLevel.bclHigh;
    //job.EncryptionPassword = "test";
    //job.RetentionPeriod = -1;

    object myFS = (object)fs;

    job.VerifyAfterBackup = true;
    //job.Selection = fs;
    job.set_Selection(ref myFS);
    axXceedBackup1.Backup(job);

    Mathieu Drimonakos
    -Technical Designer-
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.