azure service fabric vsts release(deployment)error应用程序类型''与应用程序类型不匹配

时间:2017-06-06 15:37:32

标签: azure azure-service-fabric azure-pipelines-release-pipeline

出现此错误:

应用程序的应用程序类型''与新应用程序包的应用程序清单中的应用程序类型不匹配。请确保要升级的应用程序具有相同的应用程序类型。

enter image description here

我的应用程序很小,只包含2项服务。如果我从Visual Studio 2017手动部署它可以正常工作。但是当我从VSTS中成功构建部署时,我得到了上述错误。我在手册和vsts版本中使用了相同的发布配置文件。

有什么想法吗?

日志中的其他详细信息:



2017-06-06T16:00:59.2449160Z ##[debug]INPUT_OVERRIDEPUBLISHPROFILESETTINGS: 'false'
2017-06-06T16:01:00.9096138Z ##[debug]Join-Path "C:\Program Files\Microsoft Service Fabric\bin\fabric\fabric.code" "ServiceFabricServiceModel.xsd"
2017-06-06T16:01:00.9146136Z ##[debug]C:\Program Files\Microsoft Service Fabric\bin\fabric\fabric.code\ServiceFabricServiceModel.xsd
2017-06-06T16:01:00.9156210Z ##[debug]Length: 94
2017-06-06T16:01:00.9166135Z ##[debug]
2017-06-06T16:01:00.9186137Z ##[debug]Test-Path "C:\Program Files\Microsoft Service Fabric\bin\fabric\fabric.code\ServiceFabricServiceModel.xsd"
2017-06-06T16:01:00.9216373Z ##[debug]True
2017-06-06T16:01:00.9226141Z ##[debug]
2017-06-06T16:01:03.5668693Z ##[debug]Leaving D:\a\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.3.9\deploy.ps1.
2017-06-06T16:01:03.5767636Z ##[debug]Caught exception from task script.
2017-06-06T16:01:03.5787644Z ##[debug]Error record:
2017-06-06T16:01:03.6307491Z ##[debug]Application type of application '' doesn't match the application type in the application manifest of the new application package. Please ensure that the application being upgraded has the same application type.
2017-06-06T16:01:03.6317836Z ##[debug]At D:\a\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.3.9\ServiceFabricSDK\Publish-UpgradedServiceFabricApplication.ps1:195 char:17
2017-06-06T16:01:03.6329753Z ##[debug]+                 throw $errMsg
2017-06-06T16:01:03.6338786Z ##[debug]+                 ~~~~~~~~~~~~~
2017-06-06T16:01:03.6350377Z ##[debug]    + CategoryInfo          : OperationStopped: (Application typ...plication type.:String) [], RuntimeException
2017-06-06T16:01:03.6360412Z ##[debug]    + FullyQualifiedErrorId : Application type of application '' doesn't match the application type in the application     manifest of the new application package. Please ensure that the application being upgraded has the same applicati    on type.
2017-06-06T16:01:03.6370408Z ##[debug] 
2017-06-06T16:01:03.6380417Z ##[debug]Script stack trace:
2017-06-06T16:01:03.6410418Z ##[debug]at Publish-UpgradedServiceFabricApplication, D:\a\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.3.9\ServiceFabricSDK\Publish-UpgradedServiceFabricApplication.ps1: line 195
2017-06-06T16:01:03.6420417Z ##[debug]at <ScriptBlock>, D:\a\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.3.9\deploy.ps1: line 144
2017-06-06T16:01:03.6430417Z ##[debug]at <ScriptBlock>, <No file>: line 1
2017-06-06T16:01:03.6440419Z ##[debug]at <ScriptBlock>, <No file>: line 22
2017-06-06T16:01:03.6450418Z ##[debug]at <ScriptBlock>, <No file>: line 18
2017-06-06T16:01:03.6460418Z ##[debug]at <ScriptBlock>, <No file>: line 1
2017-06-06T16:01:03.6480463Z ##[debug]Exception:
2017-06-06T16:01:03.6529321Z ##[debug]System.Management.Automation.RuntimeException: Application type of application '' doesn't match the application type in the application manifest of the new application package. Please ensure that the application being upgraded has the same application type.
2017-06-06T16:01:03.6825375Z ##[error]Application type of application '' doesn't match the application type in the application manifest of the new application package. Please ensure that the application being upgraded has the same application type.
2017-06-06T16:01:03.6825375Z ##[debug]Processed: ##vso[task.logissue type=error]Application type of application '' doesn't match the application type in the application manifest of the new application package. Please ensure that the application being upgraded has the same application type.
2017-06-06T16:01:03.6845374Z ##[debug]Processed: ##vso[task.complete result=Failed]
2017-06-06T16:01:03.7105387Z ##[section]Finishing: Deploy Service Fabric Application
2017-06-06T16:01:03.7155386Z ##[debug]Cleaning agent temp folder: d:\a\_temp
2017-06-06T16:01:03.7155386Z ##[section]Finishing: Release
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

我找到了根本原因并且它太愚蠢了。它很容易被错过,因为除非你将鼠标拖到最后,否则你无法在视频中看到整个文本框值。参数也指向发布的配置文件,这是错误的,我更正了。

enter image description here