2017-06-06 35 views
0

收到此錯誤:應用程序的蔚藍服務織物VSTS發佈(部署)應用程序的「錯誤應用程序類型」不匹配的應用程序類型

應用型「」不存在應用程序的應用類型相匹配新應用程序包的清單。請確保正在升級的應用程序具有相同的應用程序類型。

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

+0

您是否試過刪除並取消配置集羣上的應用程序? –

+0

@EricLizotte,是的。我現在試過了,仍然是同樣的錯誤。 – marvs

+0

什麼是細節構建/發佈日誌?您可以在OneDrive上共享它。您正在使用Visual Studio 2017,您是否爲Visual Studio構建任務(Visual Studio版本)選擇Visual Studio 2017?另一方面,如果您想使用託管代理,則需要使用Hosted VS2017代理。 –

回答

0

我找到了根本原因,它是如此愚蠢的。這很容易錯過,因爲除非您將鼠標拖到最後,否則無法在vsts中看到整個文本框的值。參數也指向發佈配置文件,這是錯誤的,我糾正了這一點。

enter image description here

相關問題