BTDF Host Restart Issue-V6.0

Hello everyone ,

I have an issue here , in my project we need to restart the host instance which all relevant to the application not the entire hosts. I have to do this environment to environment. Below is the settings i have written in my project file ,

<?xml version="1.0" encoding="utf-8"?>
<!--
  Deployment Framework for BizTalk
  Copyright (C) 2008-14 Thomas F. Abraham, 2004-08 Scott Colestock
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Installer" ToolsVersion="4.0">
  <PropertyGroup>
    <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
    <Platform Condition="'$(Platform)' == ''">x86</Platform>
    <SchemaVersion>1.0</SchemaVersion>
    <ProjectName>abc.Integration.abcff</ProjectName>
    <ProjectVersion>1.0</ProjectVersion>
    <IncludeSSO>False</IncludeSSO>
    <UsingMasterBindings>True</UsingMasterBindings>
    <RequireXmlPreprocessDirectives>False</RequireXmlPreprocessDirectives>
    <ApplyXmlEscape>True</ApplyXmlEscape>
    <IncludeOrchestrations>false</IncludeOrchestrations>
    <IncludeTransforms>false</IncludeTransforms>
    <SkipIISReset>true</SkipIISReset>
    <SkipHostInstancesRestart>False</SkipHostInstancesRestart>
    </PropertyGroup>
  <PropertyGroup>
    <!-- Properties related to building an MSI for server deployments -->
    <!-- BizTalk App Version Upgrade -->
    <!--   For each new product release to be deployed to your BizTalk servers: -->
    <!--     1) Increment ProductVersion -->
    <!--     2) Generate a new GUID and update ProductId with the new GUID -->
    <!--   This allows the new MSI to automatically uninstall (not undeploy!) the old MSI and install the new one. -->
    <ProductVersion>1.0.0</ProductVersion>
    <ProductId>dd853ecf-b7f4-4ffa-9108-299ce18ff736</ProductId>
    <!-- BizTalk App Version Upgrade -->
    <ProductName>abc.Integration.abcff for BizTalk</ProductName>
    <Manufacturer>Deployment Framework User</Manufacturer>
    <PackageDescription>abc.Integration.abcff</PackageDescription>
    <!-- NEVER change the ProductUpgradeCode. -->
    <ProductUpgradeCode>83410ee1-4d88-4647-8da1-2bda1e75894f</ProductUpgradeCode>
  </PropertyGroup>
  <!-- Under TFS Team Build, set CustomizableOutDir property to true in TFS 2005/2008/2010 UpgradeTemplate. -->
  <!-- With a workflow build, copy the default template then modify the MSBuild task for the solution build. Set OutDir to blank and -->
  <!-- CommandLineArguments to String.Format("/p:SkipInvalidConfigurations=true;TeamBuildOutDir=""{0}"" {1}", BinariesDirectory, MSBuildArguments). -->
  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Debug\</OutputPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Release'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Release\</OutputPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Server'">
    <DeploymentFrameworkTargetsPath>Framework\</DeploymentFrameworkTargetsPath>
    <!-- Get our PDBs into the GAC so we get file/line number information in stack traces. -->
    <DeployPDBsToGac>false</DeployPDBsToGac>
  </PropertyGroup>
  <ItemGroup>
    <PropsFromEnvSettings Include="ReceiveHost;SendHost;OrchHost" />
  </ItemGroup>
  <!-- !!! TODO !!! -->
  <!-- Add ItemGroup elements that contain one or more Schemas, Orchestrations, Transforms, etc. elements that describe -->
  <!-- the specific artifacts in your solution that need to be deployed. Use IntelliSense as a guide. -->
  <ItemGroup>
   <AppsToReference Include="abc.Integration.Common" />
  </ItemGroup>
   <ItemGroup>
    <Schemas Include="abc.Integration.abcff.dll">
      <LocationPath>..\$(ProjectName)\bin\$(Configuration)</LocationPath>
    </Schemas>
  </ItemGroup>
  <ItemGroup>
    <BizTalkHosts Include="$(SendingHost)" />
    <BizTalkHosts Include="$(ReceiveHost)" />
    <BizTalkHosts Include="$(OrchHost)" />
  </ItemGroup>
  <!-- !!! TODO !!! -->
  <Import Project="$(DeploymentFrameworkTargetsPath)BizTalkDeploymentFramework.targets" />
  <!--
    The Deployment Framework automatically packages most files into the server install MSI.
    However, if there are special folders that you need to include in the MSI, you can
    copy them to the folder $(RedistDir) in the CustomRedist target.
    To include individual files, add an ItemGroup with AdditionalFiles elements.
  -->
  <Target Name="CustomRedist">
  </Target>
</Project>

I have three different host for send , receive and orchestration.Host differs environment to environment.

September 3rd, 2015 1:24pm

Sorry Ashwin,

I am not getting what is the issue you are facing

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 1:44pm

Let me explain you in detail ,

1.I have three environments - SIT ,UAT ,Production

2.My project involves three artifacts - Receive,send , orchestration

3.Three Host involved for these artifacts-ReceiveHost,Sendhost ,orchestartionHost

4.In the spreadsheet i have mentioned different hosts for each environment

5.When i deploy the solution i need to restart the Host which are associated with the application i.e all the three hosts when i deploy in each environment.

I hope this helps you  

September 3rd, 2015 1:59pm

This should work.

<ItemGroup>
    <BizTalkHosts Include="$(SendingHost);$(ReceiveHost);$(OrchHost)" />
</ItemGroup>

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 2:16pm

One two Host is restarting i.e , ReceiveHost and OrchHost gets restarted not the sendhost.

September 3rd, 2015 2:33pm

My sincere apologies Rachit Sikroria .

But Sir, one concern, Is there be 'SendHost' or 'SendingHost'

  <ItemGroup>
    <BizTalkHosts Include="$(SendHost);$(ReceiveHost);$(OrchHost)" />
  </ItemGroup>
Please correct me if I am wrong.

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 2:37pm

One two Host is restarting i.e , ReceiveHost and OrchHost gets restarted not the sendhost.

September 3rd, 2015 2:37pm

My sincere apologies Rachit Sikroria .

But Sir, one concern, Is there be 'SendHost' or 'SendingHost'

  <ItemGroup>
    <BizTalkHosts Include="$(SendHost);$(ReceiveHost);$(OrchHost)" />
  </ItemGroup>
Please correct me if I am wrong.

whops! Nice catch.

<ItemGroup>
    <BizTalkHosts Include="$(SendHost);$(ReceiveHost);$(OrchHost)" />
</ItemGroup>

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 2:39pm

One two Host is restarting i.e , ReceiveHost and OrchHost gets restarted not the sendhost.

September 3rd, 2015 2:39pm

That why I have corrected the script and posted.

  <ItemGroup>
    <PropsFromEnvSettings Include="ReceiveHost;SendHost;OrchHost" />
  </ItemGroup>
  <!-- !!! TODO !!! -->
  <!-- Add ItemGroup elements that contain one or more Schemas, Orchestrations, Transforms, etc. elements that describe -->
  <!-- the specific artifacts in your solution that need to be deployed. Use IntelliSense as a guide. -->
  <ItemGroup>
   <AppsToReference Include="abc.Integration.Common" />
  </ItemGroup>
   <ItemGroup>
    <Schemas Include="abc.Integration.abcff.dll">
      <LocationPath>..\$(ProjectName)\bin\$(Configuration)</LocationPath>
    </Schemas>
  </ItemGroup>
  <ItemGroup>
    <BizTalkHosts Include="$(SendHost);$(ReceiveHost);$(OrchHost)" />
  </ItemGroup		
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 2:41pm

Thanks now its working :)
September 3rd, 2015 2:45pm

My sincere apologies Rachit Sikroria .

But Sir, one concern, Is there be 'SendHost' or 'SendingHost'

  <ItemGroup>
    <BizTalkHosts Include="$(SendHost);$(ReceiveHost);$(OrchHost)" />
  </ItemGroup>
Please correct me if I am wrong.

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 6:29pm

My sincere apologies Rachit Sikroria .

But Sir, one concern, Is there be 'SendHost' or 'SendingHost'

  <ItemGroup>
    <BizTalkHosts Include="$(SendHost);$(ReceiveHost);$(OrchHost)" />
  </ItemGroup>
Please correct me if I am wrong.

September 3rd, 2015 6:29pm

My sincere apologies Rachit Sikroria .

But Sir, one concern, Is there be 'SendHost' or 'SendingHost'

  <ItemGroup>
    <BizTalkHosts Include="$(SendHost);$(ReceiveHost);$(OrchHost)" />
  </ItemGroup>
Please correct me if I am wrong.

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 6:29pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics