Call MATLAB Function from C# Client
조회 수: 4 (최근 30일)
이전 댓글 표시
I am using Visual Studio Professional 2019 and MATLAB 2020b. I was trying to run the following example code but receivng the exception that "Unable to cast COM object of type 'MLApp.MLAppClass' to interface type 'MLApp.DIMLApp". Does anyone know why? Thanks.
System.InvalidCastException: 'Unable to cast COM object of type 'MLApp.MLAppClass' to interface type 'MLApp.DIMLApp'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{669CEC93-6E22-11CF-A4D6-00A024583C19}' failed due to the following error: Unspecified error (0x80004005 (E_FAIL)).'
댓글 수: 0
답변 (1개)
Manas Meena
2021년 2월 11일
Please make sure that the correct server is registered
The following links might be useful
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!