How to recover from a VssSnapshotSetInProgressException

Dec 31, 2013 at 9:03 AM
I have experienced an issue mainly when testing my application that utilizes AlpphaVSS. Sometime I get an VssSnapshotSetInProgressExceptionon when calling StartSnapshotSet(). My question is how should I handle this exception?

Can I wait for the snapshot to be created and then use that? and how exactly am I supposed to wait for the snapshot creation? or should I delete existing snapshots and retry the creation of a new one?

Can someone help please?
Dec 31, 2013 at 10:46 AM
I don't know how to handle this exactly, but I would suggest you use your favorite search engine to search for the error code VSS_E_SNAPSHOT_SET_IN_PROGRESS which is the error code reported by the native VSS components, and see if you can find some information there.
Dec 31, 2013 at 11:23 AM
I only managed to find this set of supposed fixes for such an error. I guess I'll need to write some retry code at specific intervals to create the snapshot. Hope someone can come up with a better solution.