2016-09-21 7 views
0

Visual Studio 2015でサービスファブリックプロジェクトを構築することを試しています。Weatherというサービスが1つあります。私はプロジェクトを実行しようとすると、私は次のような出力が得られます。Azure Service Fabricで重複するパラメータを使用できません。

2>Started executing script 'Deploy-FabricApplication.ps1'. 
2>. 'D:\InergySystems\GitHub\InSysServiceFabric\InSysServiceFabric\Scripts\Deploy-FabricApplication.ps1' -ApplicationPackagePath 'D:\InergySystems\GitHub\InSysServiceFabric\InSysServiceFabric\pkg\Debug' -PublishProfileFile 'D:\InergySystems\GitHub\InSysServiceFabric\InSysServiceFabric\PublishProfiles\Local.xml' -DeployOnly:$true -UnregisterUnusedApplicationVersionsAfterUpgrade $false -OverrideUpgradeBehavior 'None' -OverwriteBehavior 'Always' -SkipPackageValidation:$true -ErrorAction Stop 
2>Copying application to image store... 
2>Copy application package succeeded 
2>Registering application type... 
2>Register-ServiceFabricApplicationType : Parameter with the name 'Weather_InstanceCount' is found more than once. 
2>Duplicate parameters are not allowed. 
2>FileName: C:\SfDevCluster\Data\ImageBuilderProxy\AppType\InSysServiceFabricType\ApplicationManifest.xml 
2>At C:\Program Files\Microsoft SDKs\Service 
2>Fabric\Tools\PSModule\ServiceFabricSDK\Publish-NewServiceFabricApplication.ps1:237 char:9 
2>+   Register-ServiceFabricApplicationType -ApplicationPathInImage ... 
2>+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
2> + CategoryInfo   : InvalidOperation: (Microsoft.Servi...usterConnection:ClusterConnection) [Register-Servic 
2> eFabricApplicationType], FabricException 
2> + FullyQualifiedErrorId : RegisterApplicationTypeErrorId,Microsoft.ServiceFabric.Powershell.RegisterApplicationTyp 
2> e 
2> 
2>Finished executing script 'Deploy-FabricApplication.ps1'. 
2>Time elapsed: 00:00:06.7573145 
2>The PowerShell script failed to execute. 
========== Build: 1 succeeded, 0 failed, 6 up-to-date, 0 skipped ========== 
========== Deploy: 0 succeeded, 1 failed, 0 skipped ========== 

重要な部分があるように思わ:私はサービスファブリック(ローカルクラスタ)をリセットして再起動しようとした

2>Register-ServiceFabricApplicationType : Parameter with the name 'Weather_InstanceCount' is found more than once. 
2>Duplicate parameters are not allowed. 

が、それでも同じエラーが発生します。

とにかくアイデア?

SFを以前に使用していないことがありますが、どの情報が役立つのかわかりません。

+1

ApplicationManifest.xmlをチェックして、Weather_InstanceCountパラメータを2回設定しないことを確認してください。 – MajkeloDev

+0

これはありがたいことです。何らかの理由で(意図的に追加しなかった)、ApplicationManifest.xmlとApplicationParameters/Local.xmlに二重のエントリがありました。あなたが1つを追加すると、答えとしてマークするのが楽しいです。 – ProfNimrod

答えて

2

答えは、エラーメッセージである:

Parameter with the name 'Weather_InstanceCount' is found more than once. 

はあなたApplicationManifest.xmlをチェック - あなたが許可されていないと同じ名前を持つ2つのアプリケーションのパラメータを、持っています。

関連する問題