使用服务结构SDK版本2.1.150.X设置本地群集时出错

时间:2016-07-08 09:00:24

标签: azure service

使用最新的服务结构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> -->

0 个答案:

没有答案