DisableWriterClasses or DisableWriterInstances exception

May 8, 2012 at 2:59 PM

I am getting a System.NotImplementedException when running Alphaleonis.Win32.Vss.VssBackupComponents.DisableWriterClasses(Guid[]). Tried it before and after Initialize backup. It may be just something I am doing wrong... Below is my code:

Guid[] ArrayOfDisabledWriters; //contains a list of disabled writers due to error
List<Guid> ListOfDisabledWriters = new List<Guid>();
IVssImplementation iv = VssUtils.LoadImplementation();
IVssBackupComponents ibc = iv.CreateVssBackupComponents();

ibc.InitializeForBackup(null);
ibc.GatherWriterMetadata();
ibc.GatherWriterStatus();

IList<VssWriterStatusInfo> wsi = ibc.WriterStatus;


foreach (VssWriterStatusInfo value in wsi)
            {

 if (value.Failure != VssError.Success) //checks for problem writer
   {
      ListOfDisabledWriters.Add(value.ClassId);
   }

}           

  ArrayOfDisabledWriters = ListOfDisabledWriters.ToArray();
            try
            {
                ibc.DisableWriterClasses(ArrayOfDisabledWriters);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);

            }

               ibc.FreeWriterStatus();
               ibc.AbortBackup();

....................................


I get:

System.NotImplemetedException: The requested operation is not supported on the current operating system or by the current profider

Running Windows XP with SP3. Using Visual Studio 2008 with .Net 2.0 version of AlphaVSS.

Coordinator
May 8, 2012 at 4:45 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.