6 Replies Latest reply on May 9, 2018 5:50 PM by Jacob Corder

    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

    Sean Donnelly

      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)).