Skip to content

Instantly share code, notes, and snippets.

@mattcorr
Last active October 8, 2015 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattcorr/9116b6426ed0e3f535f2 to your computer and use it in GitHub Desktop.
Save mattcorr/9116b6426ed0e3f535f2 to your computer and use it in GitHub Desktop.
Command Line for App install with DeployBizTalkMgmtDB set to false
PS C:\Work\TESTESB\Tools\Powershell > & C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe "C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Deployment.btdfproj" "/p:DeployBizTalkMgmtDB=false;Configuration=Server;SkipUndeploy=false;SkipBamUndeploy=false" /target:Deploy "/l:FileLogger,Microsoft.Build.Engine;logfile=C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\DeployResults\DeployResults.txt" "/p:BTSACCOUNT=.\BizTalkService;ENV_SETTINGS=C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Exported_LocalSettings.xml" "/p:ProjectVersion=100.0.1.0;ProductVersion=1.0.0;ProductId=1e8abb6e-45f5-4fe9-8427-c350d230ab2f"
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18449]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 8/10/2015 11:52:13 AM.
Project "C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Deployment.btdfproj" on node 1 (Deploy target(s)).
SetModeDeploy:
DEPLOYING APPLICATION TO BIZTALK...
SetWinVer:
Running on Windows V62
Detected IIS 7
Detected 64-bit OS
GetSoftwarePaths:
Using .NET Framework Install Path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319'.
Using BizTalk Install Path 'C:\Program Files (x86)\Microsoft BizTalk Server 2013\'.
Using Deployment Framework Install Path 'C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\'.
Using Deployment Framework Tools Path 'C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools'.
ExportSettings:
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\EnvironmentSettingsExporter.exe" "C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\EnvironmentSettings
\SettingsFileGenerator.xml" "C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.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_OctopusDeploySettings.xml...
Exporting to Exported_DevSettings.xml...
Finished.
InitSettingsFilePath:
SetRegistryValue: Attempting to create/update value 'C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Exported_LocalSettings.xml' in registry value 'LastDeploySettingsFilePath' at key 'HKEY_LOCAL_MACHINE\SOFTW
ARE\TEST\TESTESB.Channel.Mars for BizTalk'...
SetRegistryValue: Successfully created/updated value.
Using settings file C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Exported_LocalSettings.xml
SetPropertiesFromEnvironmentSettings:
Setting properties from environment settings file (C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Exported_LocalSettings.xml)
Setting property to value 'BizTalk Application Users'.
Setting property to value 'BizTalk Server Administrators'.
Setting property to value '.\BizTalkService'.
Setting property to value 'TESTTEST'.
Setting property to value 'Data Source=VAWS02MDS3011\MDSDEV6INST;Initial Catalog=MDSDEV06DB;Integrated Security=False;User ID=mds_esb_sqldev;Password=TESTTEST'.
Setting property to value 'PRE_LIVE'.
Setting property to value 'Batch'.
Setting property to value '.'.
InitializeAppName:
BizTalk Application Name is TESTESB.Channel.Mars
PreprocessBindings:
Checking syntax of XML file 'C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\PortBindingsMaster.xml'...
Syntax of XML file 'C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\PortBindingsMaster.xml' appears to be valid.
Clearing file attributes for 'PortBindings.xml'.
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\xmlpreprocess.exe" /v /c /noDirectives /i:"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\PortBindin
gsMaster.xml" /o:"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\PortBindings.xml" /d:CurDir="C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0" /s:"C:\Program Files (x86)\TESTESB.Channe
l.Mars for BizTalk\100.0\Exported_LocalSettings.xml"
XmlPreprocess v2.0.18.0
Copyright (c) 2004-2013 Loren M Halvorson
XML File Preprocessor
Settings XML file: "C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Exported_LocalSettings.xml"
Preprocessing "C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\PortBindingsMaster.xml" to "C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\PortBindings.xml"...
PortBindings.xml : Set the value 'TESTESB.Channel.Mars' of 12 node(s) matching XPath '//ApplicationName'.
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\ElementTunnel.exe" /i:"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\PortBindings.xml" /o:"C:\Progr
am Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\PortBindings.xml" /x:"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\adapterXPaths.txt" /encode+
Nested XML Encoder/Decoder v5.5.100.0
Copyright (C) 2005-2014 Scott Colestock, Tim Rayburn, Thomas F. Abraham
XML encodes/decodes content of element(s) by XPath. Applies escaping rules such
as &gt; for '<'. Namespace decls, PIs, etc. of nested XML are not preserved.
XPaths : 16
Transformed Nodes : 0
Empty Nodes (skipped) : 17
No Transform Req'd (skipped) : 19
Total Matched Nodes : 36
Complete - output file has been saved.
Checking syntax of XML file 'C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\PortBindings.xml'...
Syntax of XML file 'C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\PortBindings.xml' appears to be valid.
StopBizTalk:
iisreset.exe /noforce /restart /timeout:60
Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted
StopSelectedBizTalkHosts:
Stopping host instance: HighPerformanceHost on W02132-VDEV2
Stopped host instance : HighPerformanceHost on W02132-VDEV2
Stopping host instance: BatchHost on W02132-VDEV2
Stopped host instance : BatchHost on W02132-VDEV2
Stopping host instance: HighPerformanceSendHost on W02132-VDEV2
Stopped host instance : HighPerformanceSendHost on W02132-VDEV2
DeploySharedAssemblies:
Deploying additional assemblies to GAC...
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\gacutil.exe" /f /i "C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\SSOSettings
FileReader.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
Finished deploying additional assemblies to GAC.
DeployExternalAssemblies:
Deploying external assemblies...
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\gacutil.exe" /f /i "..\ExternalAssemblies\TESTESB.Integration.MessageDefinitions.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\gacutil.exe" /f /i "..\ExternalAssemblies\TESTESB.Finance.Mapping.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\gacutil.exe" /f /i "..\ExternalAssemblies\TESTESB.Finance.MasterDataProvider.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\gacutil.exe" /f /i "..\ExternalAssemblies\TESTESB.Membership.Mapping.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\gacutil.exe" /f /i "..\ExternalAssemblies\Microsoft.BizTalk.Adapter.Wcf.Publishing.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
Finished deploying external assemblies.
DeployComponents:
Deploying components to GAC...
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\gacutil.exe" /f /i "..\TESTESB.Channel.Mars.Platform.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Framework\DeployTools\gacutil.exe" /f /i "..\TESTESB.Channel.Mars.Utility.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
Finished deploying components to GAC.
Deploying PDB's to GAC...
Preparing to copy source file '..\TESTESB.Channel.Mars.Platform.pdb' to GAC path 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\TESTESB.Channel.Mars.Platform\v4.0_1.0.0.0__7c4b30bc7f2d8128\TESTESB.Channel.Mars.Platform.pdb'.
Preparing to copy source file '..\TESTESB.Channel.Mars.Utility.pdb' to GAC path 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\TESTESB.Channel.Mars.Utility\v4.0_1.0.0.0__7c4b30bc7f2d8128\TESTESB.Channel.Mars.Utility.pdb'.
Copying file from "..\TESTESB.Channel.Mars.Platform.pdb" to "C:\Windows\Microsoft.Net\assembly\GAC_MSIL\TESTESB.Channel.Mars.Platform\v4.0_1.0.0.0__7c4b30bc7f2d8128\TESTESB.Channel.Mars.Platform.pdb".
Copying file from "..\TESTESB.Channel.Mars.Utility.pdb" to "C:\Windows\Microsoft.Net\assembly\GAC_MSIL\TESTESB.Channel.Mars.Utility\v4.0_1.0.0.0__7c4b30bc7f2d8128\TESTESB.Channel.Mars.Utility.pdb".
Finished deploying PDB's to GAC.
DeployVirtualDirectory:
Virtual directory 'TESTESB.Channel.Mars' already exists. Reconfiguring existing vdir.
Virtual directory 'TESTESB.Channel.Mars' created/updated with path 'C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\SolutionItems\WebServices\TESTESB.Channel.Mars'.
DeployVDirsIIS6Plus:
App pool 'TESTESB.Channel.Mars.AppPool' assigned to virtual directory 'TESTESB.Channel.Mars'.
App pool 'TESTESB.Channel.Mars.AppPool' identity configured as user '.\BizTalkService'.
"C:\Windows\System32\inetsrv\appcmd.exe" set apppool /apppool.name:"TESTESB.Channel.Mars.AppPool" /managedRuntimeVersion:v4.0
APPPOOL object "TESTESB.Channel.Mars.AppPool" changed
CustomPostDeployTarget:
Running SQL scripts for TESTESB.Channel.Mars...
sqlcmd.exe -S . -d BAMPrimaryImport -E -i "..\SolutionItems\SQL\Create_TESTEsbMarsBamViews.sql"
Changed database context to 'BAMPrimaryImport'.
Creating the Event Log Source for TESTESB.Channel.Mars...
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -ExecutionPolicy Unrestricted -command "..\CreateEventLogSource_v1.0.ps1 TESTESB TESTESB.Channel.Mars"
TESTESB.Channel.Mars is already a source for the TESTESB Event Log.
Regenerating the Channel Mars Web Service Definition from GAC DLLs...
Exporting WCF service artifacts from ..\SolutionItems\WebServices\TESTESB.Channel.Mars\App_Data\Temp\WcfServiceDescription.xml...
C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Deployment.btdfproj(351,5): error : Exception has been thrown by the target of an invocation.
Done Building Project "C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Deployment.btdfproj" (Deploy target(s)) -- FAILED.
Build FAILED.
"C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Deployment.btdfproj" (Deploy target) (1) ->
(CustomPostDeployTarget target) ->
C:\Program Files (x86)\TESTESB.Channel.Mars for BizTalk\100.0\Deployment\Deployment.btdfproj(351,5): error : Exception has been thrown by the target of an invocation.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:26.50
@mattcorr
Copy link
Author

mattcorr commented Oct 8, 2015

The deployment is failing at the creation of local WCF Services due to items expected to be in the GAC are not there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment