InvalidCastException after updating Service Fabric NuGet packages

Running into the following error after updating the Service Fabric NuGet packages to to version 2.8.219:

Unable to cast COM object of type 'System.__ComObject' to interface type 'IFabricNodeContextResult2'

The fix is to install the latest SDK. There’s another catch, too. The Azure clusters will  not automatically upgrade to version 6.x. You’ll need to go into the Portal and trigger a manual upgrade to the newest Fabric version

Leave a Reply