AnsweredAssumed Answered

System.InvalidCastException: 'Unable to cast COM object of type 'System.__ComObject' to interface type 'EPDM.Interop.epdm.IEdmBatchUnlock2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{F0970446-4

Question asked by Sean Donnelly on May 9, 2018
Latest reply on May 9, 2018 by Jacob Corder

Hello,

 

I am using the IEdmBatchUnlock2 in PDM and receiving the below error for this line:

batchUnlocker = (IEdmBatchUnlock2)vault2.CreateUtility(EdmUtility.EdmUtil_BatchUnlock);

 

Any idea what is causing this? I ran a repair on my PDM. batchAdder is working just fine.

 

Unable to cast COM object of type 'System.__ComObject' to interface type 'EPDM.Interop.epdm.IEdmBatchUnlock2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{F0970446-4CBB-4F0F-BAF5-F9CD2E09A5B3}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

Outcomes