Open hedinaili opened 7 months ago
This usually occurs when the SF nuget packages are way too old, or ahead of the installed sdk / runtime version.
@tuhland I mentioned the versions used, they are the current ones
Yes I know.
What I meant is, that this error usually occurs when the nuget packages your application uses differ too much from the installed cluster version. Updating the nuget packages and not the cluster runtime (either local or in the cloud) is a sure fire way to get this error.
We run into this frequently when we update the nuget packages and some of the devs did not update their local development cluster to the latest version Which most if them don't do, because it's a tedious manual process.
So make sure you not only updated the packages to the latest version, but also downloaded and installed the SDK / Runtime from here: https://github.com/microsoft/service-fabric/blob/master/release_notes/Service_Fabric_ReleaseNotes_101CU2.md
If you did both, this might be a different issue.
@tuhland SDK and runtime versions are 7.1.1951 to 10.1.1951 respectively which are the current ones..
Getting this exception after updating the SDK and runtime to versions 7.1.1951 to 10.1.1951 respectively
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'IFabricServiceManagementClient8'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{27309DB9-61A7-AE11-967A-BBFF7D5A5460}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
part of the stack trace
The code invoking this was not changed