none
Launching external program exception RRS feed

  • Question

  • I am trying to launch FEMAP via its API using vb# and visual studio 2017.

    Accessing an already running instance of FEMAP is done, simply, by:

            Dim app As femap.model
            app = GetObject(, "femap.model")

    which sets app = to the femap model object exactly as it should.

    And to launch a new instance of the program should be achieved by

            Dim app As femap.model
            app = CreateObject("femap.model")

    however it returns the exception:

    System.InvalidCastException: 'Unable to cast COM object of type 'System.__ComObject' to interface type 'femap.model'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{08F336B2-E668-11D4-9441-001083FFF11C}' failed due to the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).'

    Any advice on where to start looking for the issue would be appreciated, thanks

    Monday, November 26, 2018 4:18 PM

All replies