使用最新的服务结构SDK创建本地群集时,我使用 Visual Studio 2013 Update 5 时出现以下错误,而它在Visual Studio 2015 Update 3中运行良好:
Cluster manifest validation failed with exception System.ArgumentException: Error occurs in section Federation, parameter System. Fabric.Management.ServiceModel.SettingsOverridesTypeSectionParameter... OR Cluster manifest validation failed with exception System.ArgumentException: Section FaultAnalysisService found in cluster manifest but not Configurations.csv in system.fabric.management.dll
我做了什么来解决它?
如果仔细查看错误,您会发现以下两个文件设置不兼容。 C:\ Program Files \ Microsoft Service Fabric \ bin \ Fabric \ Fabric.Code \ Configurations.csv 和 C:\ Program Files \ Microsoft SDKs \ Service Fabric \ ClusterSetup \ NonSecure \ ClusterManifestTemplate.xml
只需在ClusterManifestTemplate.xml中禁用以下内容:
<Section Name="Federation">
<Parameter Name="NodeIdGeneratorVersion" Value="V3" />
<!-- <Parameter Name="UnresponsiveDuration" Value="0" /> -->
</Section>
and
<!-- <Section Name="FaultAnalysisService">
<Parameter Name="TargetReplicaSetSize" Value="5" />
<Parameter Name="MinReplicaSetSize" Value="3" />
</Section> -->