2017-02-09 125 views
0

我遇到了BizTalk解決方案(TM.UPS)的取消部署操作問題。我已經構建了一個msi並已成功部署它。但是,如果取消部署,我會在下面看到錯誤消息。奇怪的是,當我在不同的開發人員機器上構建安裝程序MSI時,但是從EXACT SAME源代碼構建時,我不會在取消部署解決方案時出現錯誤。所以它看起來像我的開發人員電腦上的一些區域(?)設置。我們正在使用部署框架。BizTalk取消部署錯誤MSB3073:命令...退出代碼1

我知道使用編排的解決方案會發生問題。沒有編排的MSI沒有問題,但是我的電腦上編制的編排解決方案確實存在這個問題。如果他們建立在另一臺電腦上,那麼他們很好。

我知道這是一個很長的範圍,但有人有一個想法是什麼問題可以嗎?隨着undeploying或也許我的電腦和其他電腦之間的差異可以是什麼?

這是錯誤代碼我得到的,而取消部署這是在我的開發人員的電腦中創建的解決方案:

Build started 9-2-2017 15:03:30. 
Overriding target "CustomPostExportSettings" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "CustomPostExportSettings" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "CustomFinalDeploy" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "CustomFinalDeploy" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "CustomFinalUndeploy" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "CustomFinalUndeploy" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "DeployAppDefinition" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "DeployAppDefinition" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "UndeployAppDefinition" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "UndeployAppDefinition" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "VerifyBizTalkAppExists" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "VerifyBizTalkAppExists" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "CustomRedist" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.WiXSetup.targets" with target "CustomRedist" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj". 
Project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" on node 1 (Undeploy target(s)). 
Building with tools version "4.0". 
Target "SetUndeployProperties" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "Undeploy" depends on it): 
Using "Message" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 
Task "Message" 
    UNDEPLOYING APPLICATION FROM BIZTALK... 
Done executing task "Message". 
Done building target "SetUndeployProperties" in project "Deployment.btdfproj". 
Target "CustomPreExportSettings" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "ExportSettings" depends on it): 
Done building target "CustomPreExportSettings" in project "Deployment.btdfproj". 
Target "ExportSettings" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "InitSettingsFilePath" depends on it): 
Task "Message" skipped, due to false condition; (!Exists('$(EffectiveSettingsSpreadsheetPath)')) was evaluated as (!Exists('C:\Program Files (x86)\TM.UPS\1.0\Deployment\EnvironmentSettings\SettingsFileGenerator.xml')). 
Using "Exec" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 
Task "Exec" 
    "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\DeployTools\EnvironmentSettingsExporter.exe" "C:\Program Files (x86)\TM.UPS\1.0\Deployment\EnvironmentSettings\SettingsFileGenerator.xml" "C:\Program Files (x86)\TM.UPS\1.0\Deployment\EnvironmentSettings" 
    Environment Settings Spreadsheet to XML Exporter 1.6.1 
    [http://EnvSettingsManager.codeplex.com] 
    Copyright (C) 2007-11 Thomas F. Abraham. All Rights Reserved. 

    Importing from SettingsFileGenerator.xml... 

    Output format is XmlPreprocess (multi-file). 

    Exporting to Exported_LocalSettings.xml... 
    Exporting to Exported_DevSettings.xml... 
    Exporting to Exported_TestSettings.xml... 
    Exporting to Exported_ProdSettings.xml... 

    Finished. 
Done executing task "Exec". 
Done building target "ExportSettings" in project "Deployment.btdfproj". 
Target "InitSettingsFilePath" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "SetPropertiesFromEnvironmentSettings" depends on it): 
Task "SetRegistryValue" skipped, due to false condition; ('$(Configuration)' == 'Server' and '$(DeploymentMode)' == 'Deploy' and '$(SettingsFilePath)' != '') was evaluated as ('Server' == 'Server' and 'Undeploy' == 'Deploy' and '' != ''). 
Task "Message" 
    Invalid settings file path. 
Done executing task "Message". 
Task "Message" skipped, due to false condition; ('$(SettingsFilePath)' != '') was evaluated as ('' != ''). 
Done building target "InitSettingsFilePath" in project "Deployment.btdfproj". 
Target "SetPropertiesFromEnvironmentSettings" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "LoadPropsFromEnvSettingsThenExecute" depends on it): 
Task "Message" skipped, due to false condition; ('$(SettingsFilePath)' != '' and Exists('$(SettingsFilePath)')) was evaluated as ('' != '' and Exists('')). 
Task "SetPropFromEnvSetting" skipped, due to false condition; ('$(SettingsFilePath)' != '' and Exists('$(SettingsFilePath)')) was evaluated as ('' != '' and Exists('')). 
Task "SetPropFromEnvSetting" skipped, due to false condition; ('$(SettingsFilePath)' != '' and Exists('$(SettingsFilePath)')) was evaluated as ('' != '' and Exists('')). 
Task "SetPropFromEnvSetting" skipped, due to false condition; ('$(SettingsFilePath)' != '' and Exists('$(SettingsFilePath)')) was evaluated as ('' != '' and Exists('')). 
Task "SetPropFromEnvSetting" skipped, due to false condition; ('$(SettingsFilePath)' != '' and Exists('$(SettingsFilePath)')) was evaluated as ('' != '' and Exists('')). 
Task "SetPropFromEnvSetting" skipped, due to false condition; ('$(SettingsFilePath)' != '' and Exists('$(SettingsFilePath)')) was evaluated as ('' != '' and Exists('')). 
Task "SetPropFromEnvSetting" skipped, due to false condition; ('$(SettingsFilePath)' != '' and Exists('$(SettingsFilePath)')) was evaluated as ('' != '' and Exists('')). 
Task "GetPropsFromEnvSettingsDelimited" skipped, due to false condition; ('$(SettingsFilePath)' != '' and Exists('$(SettingsFilePath)')) was evaluated as ('' != '' and Exists('')). 
Done building target "SetPropertiesFromEnvironmentSettings" in project "Deployment.btdfproj". 
Target "LoadPropsFromEnvSettingsThenExecute" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "Undeploy" depends on it): 
Task "Error" skipped, due to false condition; ('$(TargetsAfterLoadPropsFromEnvSettings)' == '') was evaluated as ('ServerUndeploy' == ''). 
Using "MSBuild" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 
Task "MSBuild" 
    Global Properties: 
    LoadedPropsFromEnvSettings=True 
    SkipExportSettings=True 
Overriding target "CustomPostExportSettings" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "CustomPostExportSettings" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "CustomFinalDeploy" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "CustomFinalDeploy" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "CustomFinalUndeploy" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "CustomFinalUndeploy" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "DeployAppDefinition" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "DeployAppDefinition" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "UndeployAppDefinition" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "UndeployAppDefinition" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "VerifyBizTalkAppExists" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" with target "VerifyBizTalkAppExists" from project "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets". 
Overriding target "CustomRedist" in project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.WiXSetup.targets" with target "CustomRedist" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj". 
Project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (1) is building "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (1:2) on node 1 (ServerUndeploy target(s)). 
Building with tools version "4.0". 
Target "SetServerUndeployProperties" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "ServerUndeploy" depends on it): 
Done building target "SetServerUndeployProperties" in project "Deployment.btdfproj". 
Target "SetPropertiesFromEnvironmentSettings" skipped, due to false condition; ('@(PropsFromEnvSettings)' != '' and '$(LoadedPropsFromEnvSettings)' != 'true') was evaluated as ('SsoAppUserGroup;SsoAppAdminGroup;ESBLookupConnectionString;ESBTrackingConnectionString;B2BUsername;B2BPassword' != '' and 'True' != 'true'). 
Target "LoadPropsFromEnvSettingsThenExecute" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "ServerUndeploy" depends on it): 
Task "Error" skipped, due to false condition; ('$(TargetsAfterLoadPropsFromEnvSettings)' == '') was evaluated as ('UndeployBizTalkMgmtDB_true' == ''). 
Task "MSBuild" 
    Global Properties: 
    LoadedPropsFromEnvSettings=True 
    SkipExportSettings=True 
Project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (1:2) is building "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (1:3) on node 1 (UndeployBizTalkMgmtDB_true target(s)). 
Building with tools version "4.0". 
Target "CustomPreInitialize" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "DevUndeploy" depends on it): 
Done building target "CustomPreInitialize" in project "Deployment.btdfproj". 
Target "PrintHeader" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "FrameworkInitialize" depends on it): 
Task "Message" 
    Using Deployment Framework Install Path 'C:\Program Files (x86)\TM.UPS\1.0\Deployment\'. 
Done executing task "Message". 
Task "Message" 
    Using Deployment Framework Tools Path 'C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\DeployTools'. 
Done executing task "Message". 
Task "Message" 
    Using .NET Framework Install Path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319'. 
Done executing task "Message". 
Task "Message" 
    Using BizTalk Install Path 'C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\'. 
Done executing task "Message". 
Task "Message" skipped, due to false condition; ('$(EsbDir)' != '') was evaluated as ('' != ''). 
Task "Message" 
    Detected IIS 8 
Done executing task "Message". 
Task "Message" 
    Using BizTalk Application Name 'TM.UPS' 
Done executing task "Message". 
Done building target "PrintHeader" in project "Deployment.btdfproj". 
Target "ExportSettings" skipped, due to false condition; ('$(SkipExportSettings)' != 'true') was evaluated as ('True' != 'true'). 
Target "CustomPostExportSettings" in file "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "FrameworkInitialize" depends on it): 
Task "Message" 
    PostExportSettingsFile started- Custom Task for Environment ACC 
Done executing task "Message". 
Task "Message" 
    Getting Settings from URL http://vmweb2venlo/DeploymentService/DeploymentSettingService.svc/wshttp for Environment ACC 
Done executing task "Message". 
Task "Message" skipped, due to false condition; ('$(UseEnvSettingsDB)' == 'false') was evaluated as ('True' == 'false'). 
Using "GetEnvironmentSettingsTasks" task from assembly "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\\\Tasks\DevWeb.BizTalk.DeploymentFramework.Tasks.dll". 
Task "GetEnvironmentSettingsTasks" 
    User administrator called GetEnvironmentSettingsTasks for integration TM.UPS with version : 1.0.0 (ProductId:b05f5ba2-f413-4564-9414-1b72b09fd982) (ProductUpgradeCodeb76fa976-41ea-44e5-a0ca-bf1ce3c8667e) on date: 02/09/2017 15:03:30 
    Setup Client to http://vmweb2venlo/DeploymentService/DeploymentSettingService.svc/wshttp 
    Found 10 settings for this integration 
    Settings saved to C:\Program Files (x86)\TM.UPS\1.0\Deployment\EnvironmentSettings\ACC.xml settings for this integration 
Done executing task "GetEnvironmentSettingsTasks". 
Done building target "CustomPostExportSettings" in project "Deployment.btdfproj". 
Target "SetPropertiesFromEnvironmentSettings" skipped, due to false condition; ('@(PropsFromEnvSettings)' != '' and '$(LoadedPropsFromEnvSettings)' != 'true') was evaluated as ('SsoAppUserGroup;SsoAppAdminGroup;ESBLookupConnectionString;ESBTrackingConnectionString;B2BUsername;B2BPassword' != '' and 'True' != 'true'). 
Target "FrameworkInitialize" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "DevUndeploy" depends on it): 
Done building target "FrameworkInitialize" in project "Deployment.btdfproj". 
Target "CustomPostInitialize" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "DevUndeploy" depends on it): 
Done building target "CustomPostInitialize" in project "Deployment.btdfproj". 
Target "CustomUndeployTarget" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "DevUndeploy" depends on it): 
Done building target "CustomUndeployTarget" in project "Deployment.btdfproj". 
Target "InitializeAppName" skipped, due to false condition; ('$(BizTalkAppName)' == '') was evaluated as ('TM.UPS' == ''). 
Target "VerifyBizTalkAppExists" in file "C:\Prog\Tools\BizTalkExtension\DeploymentFramework\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "PrepareAppForUndeploy" depends on it): 
Task "Message" 
    VerifyBizTalkAppExists : Checking Application Existence 
Done executing task "Message". 
Using "GetBizTalkAppExists" task from assembly "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.Tasks.BizTalk.dll". 
Task "GetBizTalkAppExists" 
    Checking for existence of BizTalk application 'TM.UPS'... 
    Found BizTalk application 'TM.UPS'. 
Done executing task "GetBizTalkAppExists". 
Done building target "VerifyBizTalkAppExists" in project "Deployment.btdfproj". 
Target "PrepareAppForUndeploy" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "DevUndeploy" depends on it): 
Task "Error" skipped, due to false condition; ('$(AppExists)' == 'false' and '$(DeploymentMode)' == 'Undeploy') was evaluated as ('True' == 'false' and '' == 'Undeploy'). 
Using "CallTarget" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 
Task "CallTarget" 
Target "VerifyBizTalkAppExists" skipped. Previously built successfully. 
Target "StopApplicationViaBizTalk" skipped, due to false condition; ('$(UseLegacyApplicationControl)' == 'true' and '$(AppExists)' == 'true') was evaluated as ('false' == 'true' and 'True' == 'true'). 
Target "StopTheApplication" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "StopApplication" depends on it): 
Task "Message" 
    Stopping TM.UPS application at 02-09-17 03:03:31. 
Done executing task "Message". 
Using "ControlBizTalkReceiveLocations" task from assembly "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.Tasks.BizTalk.dll". 
Task "ControlBizTalkReceiveLocations" 
    Disabling receive location 'TM.UPS.CSVshipment_to_TM.Shared.Order'... 
    Committing Receive Location actions... 
    Committed Receive Location actions. 
Done executing task "ControlBizTalkReceiveLocations". 
Using "ControlBizTalkOrchestrations" task from assembly "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.Tasks.BizTalk.dll". 
Task "ControlBizTalkOrchestrations" 
    Unenlisting orchestration 'TM.UPS.Orchestrations.Orchestration_1'... 
    Committing Orchestration actions... 
    Committed Orchestration actions. 
Done executing task "ControlBizTalkOrchestrations". 
Using "ControlBizTalkSendPortGroups" task from assembly "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.Tasks.BizTalk.dll". 
Task "ControlBizTalkSendPortGroups" 
Done executing task "ControlBizTalkSendPortGroups". 
Using "ControlBizTalkSendPorts" task from assembly "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.Tasks.BizTalk.dll". 
Task "ControlBizTalkSendPorts" 
    Unenlisting send port 'TM.UPS.SharedOrder_to_TM.Shared.Order'... 
    Committing Send Port actions... 
    Committed Send Port actions. 
Done executing task "ControlBizTalkSendPorts". 
Done building target "StopTheApplication" in project "Deployment.btdfproj". 
Target "StopApplication" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "PrepareAppForUndeploy" depends on it): 
Done building target "StopApplication" in project "Deployment.btdfproj". 
Done executing task "CallTarget". 
Task "CallTarget" 
Target "TerminateServiceInstancesConditional" skipped, due to false condition; ('$(AutoTerminateInstances)' == 'true') was evaluated as ('' == 'true'). 
Done executing task "CallTarget". 
Using "CheckForServiceInstances" task from assembly "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.Tasks.BizTalk.dll". 
Task "CheckForServiceInstances" 
    Checking for existing service instances associated with application 'TM.UPS'... 
    Done checking for existing service instances associated with application 'TM.UPS'. 
Done executing task "CheckForServiceInstances". 
Done building target "PrepareAppForUndeploy" in project "Deployment.btdfproj". 
Target "StopBizTalk" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "ConditionalHostStop" depends on it): 
Task "Exec" skipped, due to false condition; ('$(SkipIISReset)' == 'false' and '@(IISAppPool)' == '') was evaluated as ('True' == 'false' and '' == ''). 
Task "RecycleAppPool" skipped, due to false condition; ('$(SkipIISReset)' == 'false' and '@(IISAppPool)' != '') was evaluated as ('True' == 'false' and '' != ''). 
Task "CallTarget" 
Target "StopAllBizTalkHosts" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "StopBizTalk" depends on it): 
Task "Message" 
    Host list (BizTalkHosts ItemGroup) not customized. 
Done executing task "Message". 
Using "ControlBizTalkHostInstance" task from assembly "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.Tasks.dll". 
Task "ControlBizTalkHostInstance" 
Done executing task "ControlBizTalkHostInstance". 
Done building target "StopAllBizTalkHosts" in project "Deployment.btdfproj". 
Done executing task "CallTarget". 
Task "CallTarget" skipped, due to false condition; ('@(BizTalkHosts)' != '') was evaluated as ('' != ''). 
Done building target "StopBizTalk" in project "Deployment.btdfproj". 
Target "ConditionalHostStop" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "DevUndeploy" depends on it): 
Done building target "ConditionalHostStop" in project "Deployment.btdfproj". 
Target "UndeployBam" skipped, due to false condition; ('$(IncludeBAM)' == 'true' and ('$(SkipUndeploy)' == 'false' and '$(SkipBamUndeploy)' == 'false')) was evaluated as ('false' == 'true' and ('false' == 'false' and 'true' == 'false')). 
Target "UndeployBtsNtSvcExeConfig" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "DevUndeploy" depends on it): 
Task "UpdateBizTalkAppDomainConfig" skipped, due to false condition; ('$(UseIsolatedAppDomain)' == 'true') was evaluated as ('false' == 'true'). 
Done building target "UndeployBtsNtSvcExeConfig" in project "Deployment.btdfproj". 
Target "UndeployEsbItineraries" skipped, due to false condition; ('$(IncludeEsbItineraries)' == 'true' and '$(SkipUndeploy)' == 'false') was evaluated as ('false' == 'true' and 'false' == 'false'). 
Target "UndeployOrchestrations" in file "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" from project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (target "UndeploySchemas" depends on it): 
Task "Exec" 
    "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\DeployTools\gacutil.exe" /u "" 
    Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1 
    Copyright (c) Microsoft Corporation. All rights reserved. 

    Failure removing assembly from cache: The parameter is incorrect. 

C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets(1305,5): error MSB3073: The command ""C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\DeployTools\gacutil.exe" /u """ exited with code 1. [C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj] 
Done executing task "Exec" -- FAILED. 
Done building target "UndeployOrchestrations" in project "Deployment.btdfproj" -- FAILED. 
Done Building Project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (UndeployBizTalkMgmtDB_true target(s)) -- FAILED. 

Done executing task "MSBuild" -- FAILED. 
Done building target "LoadPropsFromEnvSettingsThenExecute" in project "Deployment.btdfproj" -- FAILED. 
Done Building Project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (ServerUndeploy target(s)) -- FAILED. 

Done executing task "MSBuild" -- FAILED. 
Done building target "LoadPropsFromEnvSettingsThenExecute" in project "Deployment.btdfproj" -- FAILED. 
Done Building Project "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (Undeploy target(s)) -- FAILED. 


Build FAILED. 

"C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (Undeploy target) (1) -> 
"C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (ServerUndeploy target) (1:2) -> 
"C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj" (UndeployBizTalkMgmtDB_true target) (1:3) -> 
(UndeployOrchestrations target) -> 
    C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets(1305,5): error MSB3073: The command ""C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\DeployTools\gacutil.exe" /u """ exited with code 1. [C:\Program Files (x86)\TM.UPS\1.0\Deployment\Deployment.btdfproj] 

    0 Warning(s) 
    1 Error(s) 

Time Elapsed 00:00:03.79 

回答

2

關鍵的錯誤是

未能從緩存中刪除組件:參數不正確。

發生後

Task "Exec" 
    "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\DeployTools\gacutil.exe" /u "" 

有一個在該命令沒有指定DLL名稱。 我希望看到

Task "Exec" 
    "C:\Program Files (x86)\TM.UPS\1.0\Deployment\Framework\DeployTools\gacutil.exe" /u "projectname.dll" 

所以檢查將看到您的部署配置,如果你沒有正確定義項目之一的地方。也許你的開發環境有一個陳舊的文件副本?強制從源代碼倉庫獲取最新版本

相關問題