Azure service fabric 服务结构不';如果在ServiceManifest.xml中指定了LoadMetric,则不会发布应用程序

Azure service fabric 服务结构不';如果在ServiceManifest.xml中指定了LoadMetric,则不会发布应用程序,azure-service-fabric,Azure Service Fabric,我已在ServiceManifest.xml中指定LoadMetric CommunicationCount: <?xml version="1.0" encoding="utf-8"?> <ServiceManifest Name="StatelessWcfNetPkg" Version="1.0.0" xmlns="http://schemas.microsoft.com/2011/01/fabric"

我已在ServiceManifest.xml中指定LoadMetric CommunicationCount:

<?xml version="1.0" encoding="utf-8"?>
<ServiceManifest Name="StatelessWcfNetPkg"
                 Version="1.0.0"
                 xmlns="http://schemas.microsoft.com/2011/01/fabric"
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ServiceTypes>
    <StatelessServiceType ServiceTypeName="StatelessWcfNetType" >
      <LoadMetrics>
        <LoadMetric Name="ConnectionCount" DefaultLoad="1" SecondaryDefaultLoad="1" Weight="High"/>
      </LoadMetrics>
    </StatelessServiceType>
  </ServiceTypes>

  <CodePackage Name="Code" Version="1.0.0">
    <EntryPoint>
      <ExeHost>
        <Program>StatelessWcfNet.exe</Program>
      </ExeHost>
    </EntryPoint>
  </CodePackage>

  <ConfigPackage Name="Config" Version="1.0.0" />

  <Resources>
    <Endpoints>
      <Endpoint Name="ServiceEndpoint" />
    </Endpoints>
  </Resources>
</ServiceManifest>

没有LoadMetric标签,一切都很好。我做错了什么?

SecondaryDefaultLoad的值必须为0,否则不应出现。我不知道为什么

4>Creating application...
4>New-ServiceFabricApplication : An error occurred during this operation.  Please check the trace logs for more details.
4>In C:\Program Files\Microsoft SDKs\Service 
4>Fabric\Tools\PSModule\ServiceFabricSDK\Publish-NewServiceFabricApplication.ps1:358 Zeichen:9
4>+         New-ServiceFabricApplication -ApplicationName $ApplicationNam ...
4>+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4>    + CategoryInfo          : InvalidOperation: (Microsoft.Servi...usterConnection:ClusterConnection) [New-ServiceFabr 
4>   icApplication], FabricException
4>    + FullyQualifiedErrorId : CreateApplicationInstanceErrorId,Microsoft.ServiceFabric.Powershell.NewApplication
4>