I've downloaded from nuget, tried downloading from codeplex and even tried using a dll from the demo project but each time I try creating a BitManager:
BitsManager manager = new BitsManager();
I get the following error:
Unable to cast object of type 'BackgroundCopyManager.BackgroundCopyManagerClass' to type 'SharpBits.Base.BackgroundCopyManager'.
Happens on the 3rd line of the BitsManager constructor:
// Set threading apartment
int hResult = NativeMethods.CoInitializeSecurity(IntPtr.Zero, -1, IntPtr.Zero, IntPtr.Zero, RpcAuthnLevel.Connect, RpcImpLevel.Impersonate, IntPtr.Zero, EoAuthnCap.None, IntPtr.Zero);
this.manager = new BackgroundCopyManager() as IBackgroundCopyManager;
Any help on this?