I am working on C# program to get the users from A component called Cyber-Ark which stores encrypted data. When my code is running half way I am getting this exception and even if i catch all the exceptions i still get it.Is there any work around for this?
Unhandled Exception: System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used.
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, Boolean& pfNeedsRelease)
at PAObjectsLib.PrivateArkClass.Term()
at CyberArk.API.Objects.PrivateArk.Term()
at CyberArk.API.Objects.PrivateArk.DoDispose(Boolean disposing)
at CyberArk.API.Objects.CyberArkBase.Dispose()
at Program.Main(String[] args)