0 Replies Latest reply on Dec 10, 2013 12:38 PM by tdarapaneni

    an error while connecting DB after declared D8CuTypeClass object

      Hi

       

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

        Source=Miner.Interop.Framework


      Any Idea?!