Currently, I have a project in which I have to perform System C drive Backup.
I received an error:
Unable to cast COM object of type 'VSS.VSSCoordinatorClass' to interface type 'VSS.IVssCoordinator'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{93BA4344-AA56-403E-87F2-819650FEDACD}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Finding Solution for the same online but any solution doesn't help me
Private Sub MakeNewSnapshot( _
ByRef vss As VSS.VSSCoordinatorClass, _
ByVal sVolume As String, _
ByRef output_SnapShotSetID As Guid, _
ByRef output_SnapShotID As Guid)
vss.StartSnapshotSet(output_SnapShotSetID)
vss.AddToSnapshotSet(sVolume, Guid.Empty, output_SnapShotID)
Dim ovssAsync As VSS.IVssAsync = Nothing
Dim oCallBack As Object = Nothing
vss.DoSnapshotSet(oCallBack, ovssAsync)
Do While (True)
Dim hr As Integer = 0
Dim x As Integer = 0
ovssAsync.QueryStatus(hr, x)
Console.Write(".")
If hr = VSS_S_ASYNC_FINISHED Then
Exit Do
End If
Thread.Sleep(1000)
Loop
Console.WriteLine()
End Sub
While Run Project I got subjected Error at "vss.StartSnapshotSet(output_SnapShotSetID)".
User contributions licensed under CC BY-SA 3.0