ExposeSnapshot crashes on 64bit builds
kimpolanun opened this issue · 1 comments
I get this error when I build my project for x64:
ExposeSnapshot: "Value does not fall within the expected range"
The way I call this method is via the following code:
IVssImplementation _vssImplementation = VssUtils.LoadImplementation(); IVssBackupComponents _backup = _vssImplementation.CreateVssBackupComponents(); _backup.InitializeForBackup(null); _backup.GatherWriterMetadata(); _backup.SetContext(VssVolumeSnapshotAttributes.Persistent | VssVolumeSnapshotAttributes.NoAutoRelease); _backup.SetBackupState(false, true, VssBackupType.Full, false); Guid MyGuid01 = _backup.StartSnapshotSet(); Guid MyGuid02 = _backup.AddToSnapshotSet(_Volume, Guid.Empty); _backup.PrepareForBackup(); _backup.DoSnapshotSet(); _backup.ExposeSnapshot(MyGuid02, null, VssVolumeSnapshotAttributes.ExposedLocally, "L:");
Is this from the GuID passed in being for 32 bit? Or is this a problem with the Windows version? It's strange because in my 32bit build that I installed on a 32bit machine the shadow copying worked fine without any errors.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.