9 Replies Latest reply on Jul 10, 2014 4:49 PM by david renz

    D8CuTypeClass object error while calling DB methods



      I am getting an error while connecting DB after declared D8CuTypeClass object,


      IWorkspace workspace = SdeWorkspaceProvider.Workspace;

                      D8CuTypeClass d8CuType = new D8CuTypeClass();


      getting below error on d8CuType.CanLoadFromDB(workspace),


      System.InvalidCastException was caught

        Message=Unable to cast COM object of type 'Miner.Interop.D8CuTypeClass' to interface type 'Miner.Interop.IMMPersistentListItem'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B9524330-B18B-11D3-A431-00500428D46D}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).


      Any Idea?!