Installation of MSI

Topics: Bindings File, Settings Management and SSO
Jan 19, 2011 at 11:28 AM

Hi.

1) when i make <UseMasterBinding> to true and select "Build server deploy MSI " in tools->Depolyment Framework for Biztalk

it creates the msi file in bin->release and the deployment file in obj->release.

My problem is that the deployment folder created in obj->release does not contain the PortBindings.xml file it contains only PortBindingsMaster.xml,because of this when i install and deploy the MSI it gives the error that is attached in the Issue Tracker "Error during deployment of MSI file".

Could you tell a soultion to this issue.

2) Also after the deployment of the MSI file the resulting project folder does not contain the "<ProjectName>.sln" file.

Should the resulting folder contain the .sln file or not.

thanks in advance

Coordinator
Jan 19, 2011 at 3:38 PM

Hi,

1) Please verify that you have <IncludeMessagingBindings> set to true.  It's correct that your MSI should include only PortBindingsMaster.xml, because PortBindings.xml is dynamically created by transforming PortBindingsMaster.xml and pulling in any replacement values from the settings spreadsheet.

2) The generated MSI does not include any development files like .cs, .sln, .user, etc.

Thanks,
Tom

Jan 20, 2011 at 5:29 AM

Thanks.

you said that the msi file will contain only the PortBindingsMaster.xml and the PortBindings.xml file will get created dynamically, but i dont understand why it gives error while deploying the installed msi file. I did not find any PortBinding.xml file in the deployment folder in the installed location.

when will the PortBindings.xml file will get created, is it during installation or during deployment or i will have to run any command for it to happen.

 

Coordinator
Jan 20, 2011 at 6:08 AM

It is created when the preprocess bindings step runs during deployment.

Have you fully tested your deployment within Visual Studio using the BTDF toolbar or Tools\Deployment Framework for BizTalk menu items?  You should not attempt to use the MSI deployment until you have successfully tested deploy and undeploy inside Visual Studio (running as Administrator).

Toward the end of the deployment process but before the application is started, the bindings file will be imported from PortBindings.xml (or your custom named file) if you have IncludeMessagingBindings set to true.

Thanks,
Tom

Jan 20, 2011 at 9:09 AM

ok thats fine.

if i dont have a PortBindings.xml file, i have only PortBindingsMaster.xml file what will happen.

should i do deployment first or Preprocess biztalk binding first.

as of know both are giving error.

 

 

Coordinator
Jan 20, 2011 at 3:31 PM
Edited Jan 21, 2011 at 5:23 AM

Hi,

Can you please consolidate your questions here?  We have discussions which all seem to be related but are occurring here and within several Issue Tracker issues.  I am having a hard time following what you have and haven't tried, current state of your .btdfproj, current error messages, etc.

Please try something first: you mentioned modifying the BizTalkDeploymentFramework.targets file.  Could you please uninstall and reinstall BTDF 5.0 RC so that we can be sure you are using a known version of the code that has not been customized?  Also, based on the format of the .btdfproj you pasted into the Issue Tracker, it appears that you copied and pasted it from somewhere vs. creating it with the New Project wizard.  Could you please try creating your Deployment Framework project files using the Visual Studio Add New Project command (available on your solution)?  That is the only supported way to create a new Deployment Framework project.  In the Add New Project dialog, you will see a Deployment Framework option next to the Empty BizTalk Project option.

After you've done that, if you are still having trouble then please post here your current .btdfproj contents and your current error message.  I will close out the Issue Tracker issues.

One other note: during your very first deployment, when you do not yet have a bindings file established, you may need to turn IncludeMessagingBindings to false.  The deployment should succeed in getting the application created and files pushed into BizTalk, but fail at the end while starting the app.  Then export the bindings file to PortBindingsMaster.xml in your project folder, then re-enable IncludeMessagingBindings (and UsingMasterBindings).

Thanks,
Tom

Jan 21, 2011 at 5:20 AM

Sorry for confusing you.

i have done everything as you said "during your very first deployment, when you do not yet have a bindings file established, you may need to turn IncludeMessagingBindings to false.  The deployment should succeed in getting the application created and files pushed into BizTalk, but fail at the end while starting the app.  Then export the bindings file to PortBindingsMaster.xml in your project folder, then re-enable IncludeMessagingBindings (and UsingMasterBindings)" and everything happend as you mentioned(application created and files pushed into biztalk and done manual binding of ports and export of Binding file to PortBindingsMaster.xml)

then tried to deploy which gives me the same error.I have PortBindingsMaster.xml file there is no PortBindings.xml file until now.what should i do now.below is my .btproj file and error message.

--------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<!--
  Deployment Framework for BizTalk 5.0
  Copyright (C) 2008-2010 Thomas F. Abraham and Scott Colestock
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Deploy">
  <PropertyGroup>
    <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
    <Platform Condition="'$(Platform)' == ''">x86</Platform>
    <SchemaVersion>1.0</SchemaVersion>
    <ProjectName>MasterBindingProject</ProjectName>
    <ProjectVersion>1.0</ProjectVersion>
    <IncludeSchemas>True</IncludeSchemas>
    <IncludeOrchestrations>True</IncludeOrchestrations>
    <IncludeTransforms>True</IncludeTransforms>
    <IncludePipelines>False</IncludePipelines>
    <IncludeComponents>False</IncludeComponents>
    <IncludePipelineComponents>False</IncludePipelineComponents>
    <IncludeCustomFunctoids>False</IncludeCustomFunctoids>
    <IncludeVocabAndRules>False</IncludeVocabAndRules>
    <IncludeVirtualDirectories>False</IncludeVirtualDirectories>
    <IncludeMessagingBindings>True</IncludeMessagingBindings>
    <IncludeDeploymentTest>False</IncludeDeploymentTest>
    <Includelog4net>False</Includelog4net>
    <IncludeSSO>True</IncludeSSO>
    <IncludeEsbItineraries>False</IncludeEsbItineraries>
    <IncludeBam>False</IncludeBam>
    <IncludeInstallUtilForComponents>False</IncludeInstallUtilForComponents>
    <UsingMasterBindings>True</UsingMasterBindings>
    <ApplyXmlEscape>False</ApplyXmlEscape>
    <IncludeSettingsSpreadsheetInMsi>True</IncludeSettingsSpreadsheetInMsi>
    <IncludeCompsAndVDirsAsResources>False</IncludeCompsAndVDirsAsResources>
    <SkipIISReset>False</SkipIISReset>
    <StartApplicationOnDeploy>True</StartApplicationOnDeploy>
    <EnableAllReceiveLocationsOnDeploy>True</EnableAllReceiveLocationsOnDeploy>
    <StartReferencedApplicationsOnDeploy>True</StartReferencedApplicationsOnDeploy>
    <UseIsolatedAppDomain>False</UseIsolatedAppDomain>
    <EnableBizTalkExtendedLogging>False</EnableBizTalkExtendedLogging>
    <EnableBizTalkAssemblyValidation>False</EnableBizTalkAssemblyValidation>
    <EnableBizTalkCorrelationValidation>False</EnableBizTalkCorrelationValidation>
    <EnableBizTalkSchemaValidation>False</EnableBizTalkSchemaValidation>
  </PropertyGroup>
  <PropertyGroup>
    <!-- Properties related to building an MSI for server deployments -->
    <ProductId>fa4d1e38-3196-468a-8225-c3c3064b10de</ProductId>
    <ProductUpgradeCode>878ae84c-e91c-4f84-8045-393176ed1d54</ProductUpgradeCode>
    <ProductName>MasterBindingProject for BizTalk</ProductName>
    <ProductVersion>1.0.0</ProductVersion>
    <Manufacturer>Deployment Framework User</Manufacturer>
    <PackageDescription>MasterBindingProject</PackageDescription>
    <PackageComments>MasterBindingProject</PackageComments>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <OutputPath>bin\Debug\</OutputPath>
    <DeployPDBsToGac>false</DeployPDBsToGac>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Release'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <OutputPath>bin\Release\</OutputPath>
    <DeployPDBsToGac>false</DeployPDBsToGac>
  </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>true</DeployPDBsToGac>
  </PropertyGroup>
  <ItemGroup>
      <Schemas Include="MasterBindingProject.SampleProject.dll">
          <LocationPath>E:\Malathi\MasterBindingProject\MasterBindingProject\MasterBindingProject.SampleProject\bin\Debug</LocationPath>
      </Schemas>
      <Transforms Include="MasterBindingProject.SampleProject.dll">
          <LocationPath>E:\Malathi\MasterBindingProject\MasterBindingProject\MasterBindingProject.SampleProject\bin\Debug</LocationPath>
      </Transforms>
      <Orchestrations Include="MasterBindingProject.SampleProject.dll">
          <LocationPath>E:\Malathi\MasterBindingProject\MasterBindingProject\MasterBindingProject.SampleProject\bin\Debug</LocationPath>
      </Orchestrations>
  </ItemGroup>
  <Import Project="$(DeploymentFrameworkTargetsPath)BizTalkDeploymentFramework.targets" />
  <!--
    The Deployment Framework automatically packages most files into the server install MSI.
    However, if there are special folders or files that you need to include in the MSI, you can
    copy them to the folder $(RedistDir) in the CustomRedist target.
  -->
  <Target Name="CustomRedist">
  </Target>
</Project>

-------------------------------------------------------------------------------------------


-------------------------------------------------------
Starting build...
C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe "E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\MasterBindingProject.Deployment.btdfproj" /nologo /t:Deploy /p:Configuration=Release

Build started 1/21/2011 11:25:36 AM.
Project "E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\MasterBindingProject.Deployment.btdfproj" on node 0 (Deploy target(s)).
  Running on Windows V61
  Detected IIS 7
  Detected 64-bit OS
GetSoftwarePaths:
  Using .NET Framework Install Path 'C:\Windows\Microsoft.NET\Framework\v2.0.50727'.
  Using BizTalk Install Path 'C:\Program Files (x86)\Microsoft BizTalk Server 2009\'.
  Using Deployment Framework Install Path 'C:\Program Files (x86)\Deployment Framework for BizTalk\5.0\'.
  Using Deployment Framework Tools Path 'C:\Program Files (x86)\Deployment Framework for BizTalk\5.0\Framework\DeployTools'.
  Using BizTalk ESB Toolkit Install Path 'E:\ESBToolkit\'.
InitSettingsFilePath:
  Using settings file E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\EnvironmentSettings\local_settings.xml
ExportSettings:
  Environment Settings Spreadsheet to XML Exporter 1.5.1
  [http://EnvSettingsManager.codeplex.com]
  Copyright (C) 2007-10 Thomas F. Abraham.  All Rights Reserved.
 
  Importing from SettingsFileGenerator.xml...
 
  Output format is XmlPreprocess (multi-file).
 
  Exporting to local_settings.xml...
  Exporting to DEVL_settings.xml...
  Exporting to QA_settings.xml...
  Exporting to PROD_settings.xml...
 
  Finished.
InitializeAppName:
  BizTalk Application Name is MasterBindingProject
PreprocessBindings:
  Clearing file attributes for 'PortBindings.xml'.
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : A task error has occured.
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : Message              = The resource string "FileNotFound.Exception" for the "SetValue" task cannot be found. Confirm that the resource name "FileNotFound.Exception" is correctly spelled, and the resource exists in the task's assembly.
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : Value                = MasterBindingProject
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : IgnoreNoMatchFailure = True
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : Force                = True
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : XPath                = //ApplicationName
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : Path                 = PortBindings.xml
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : Namespaces           = <null>
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Build.Shared.ErrorUtilities.ThrowArgument(Exception innerException, String resourceName, Object[] args)
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowArgument(Boolean condition, Exception innerException, String resourceName, Object arg0, Object arg1)
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Sdc.Tasks.XmlFile.BaseXmlFileTask.OpenXmlFile(String path)
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Sdc.Tasks.XmlFile.SetValue.InternalExecute()
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Sdc.Tasks.TaskBase.Execute()
Done Building Project "E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\MasterBindingProject.Deployment.btdfproj" (Deploy target(s)) -- FAILED.

Build FAILED.

"E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\MasterBindingProject.Deployment.btdfproj" (Deploy target) (1) ->
(PreprocessBindings target) ->
  C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : A task error has occured.
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : Message              = The resource string "FileNotFound.Exception" for the "SetValue" task cannot be found. Confirm that the resource name "FileNotFound.Exception" is correctly spelled, and the resource exists in the task's assembly.
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : Value                = MasterBindingProject
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : IgnoreNoMatchFailure = True
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : Force                = True
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : XPath                = //ApplicationName
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : Path                 = PortBindings.xml
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error : Namespaces           = <null>
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Build.Shared.ErrorUtilities.ThrowArgument(Exception innerException, String resourceName, Object[] args)
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowArgument(Boolean condition, Exception innerException, String resourceName, Object arg0, Object arg1)
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Sdc.Tasks.XmlFile.BaseXmlFileTask.OpenXmlFile(String path)
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Sdc.Tasks.XmlFile.SetValue.InternalExecute()
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1049,4): error :    at Microsoft.Sdc.Tasks.TaskBase.Execute()

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.57

--------------------------------------------------------------------------

i am making my project in the same method as you mentioned(VS->solution->add new project->deployment framework project).

Coordinator
Jan 21, 2011 at 5:34 AM

Hi,

If you created this using Add New Project, then you must not be using the latest Deployment Framework code.  (It uses a template, and your PropertyGroup related to the MSI is quite different from the template.)  Will you please uninstall, download 5.0 RC from here and reinstall?

After reinstalling, please let me know if the results change.

Thanks,
Tom

Jan 21, 2011 at 6:14 AM

yes

now new issue

i have downloaded,uninstalled and reinstalled the deployment framework.

But now for some projects the biztalk deployment framework add in is not available.

What to do?

 

Coordinator
Jan 21, 2011 at 6:24 AM

What do you mean "for some projects" the addin is not available?  The menu items and toolbar will be disabled unless a solution is open.

Jan 21, 2011 at 7:33 AM

that works fine,after i restart the PC.

But the error remains the same.

--------------------------------------------------------------------------------


Starting build...
C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe "E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\MasterBindingProject.Deployment.btdfproj" /nologo /t:Deploy /p:Configuration=Release

Build started 1/21/2011 1:55:44 PM.
Project "E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\MasterBindingProject.Deployment.btdfproj" on node 0 (Deploy target(s)).
  Running on Windows V61
  Detected IIS 7
  Detected 64-bit OS
GetSoftwarePaths:
  Using .NET Framework Install Path 'C:\Windows\Microsoft.NET\Framework\v2.0.50727'.
  Using BizTalk Install Path 'C:\Program Files (x86)\Microsoft BizTalk Server 2009\'.
  Using Deployment Framework Install Path 'C:\Program Files (x86)\Deployment Framework for BizTalk\5.0\'.
  Using Deployment Framework Tools Path 'C:\Program Files (x86)\Deployment Framework for BizTalk\5.0\Framework\DeployTools'.
  Using BizTalk ESB Toolkit Install Path 'E:\ESBToolkit\'.
ExportSettings:
  Environment Settings Spreadsheet to XML Exporter 1.6.0
  [http://EnvSettingsManager.codeplex.com]
  Copyright (C) 2007-10 Thomas F. Abraham.  All Rights Reserved.
 
  Importing from SettingsFileGenerator.xml...
 
  Output format is XmlPreprocess (multi-file).
 
  Exporting to local_settings.xml...
  Exporting to DEVL_settings.xml...
  Exporting to QA_settings.xml...
  Exporting to PROD_settings.xml...
 
  Finished.
InitializeAppName:
  BizTalk Application Name is MasterBindingProject
InitSettingsFilePath:
  Using settings file E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\EnvironmentSettings\local_settings.xml
PreprocessBindings:
  Clearing file attributes for 'PortBindings.xml'.
  XmlPreprocess v2.0.13.0
  Copyright (c) 2004-2010 Loren M Halvorson
  XML File Preprocessor
 
  Settings XML file: "E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\EnvironmentSettings\local_settings.xml"
  Preprocessing "E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\PortBindingsMaster.xml" to "E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\PortBindings.xml"...
  PortBindings.xml : Set the value 'MasterBindingProject' of 2 node(s) matching XPath '//ApplicationName'.
DeployFileAdapterPhysicalPaths:
  Configuring FILE adapter physical paths from binding file PortBindings.xml...
    Processing FILE adapter physical paths (Send)...
       Setting up path E:\Malathi\MasterBindingProject\MasterBindingProject\Sample\Out...
    Processing FILE adapter physical paths (Receive)...
       Setting up path E:\Malathi\MasterBindingProject\MasterBindingProject\Sample\In...
VerifyBizTalkAppExists:
  Checking for existence of BizTalk application 'MasterBindingProject'...
  Found BizTalk application 'MasterBindingProject'.
StopApplication:
  (Retry count 0)
  Stopping MasterBindingProject application...
PrepareAppForUndeploy:
  Checking for existing service instances associated with application 'MasterBindingProject'...
  Done checking for existing service instances associated with application 'MasterBindingProject'.
UndeployAppDefinition:
  Microsoft (R) BizTalk Application Deployment Utility Version 3.8.368.0
  Copyright (c) 2006 Microsoft Corporation. All rights reserved.
 
  Information: Removing application "MasterBindingProject" from BizTalk configuration database (server="EIPRACTICE4", database="BizTalkMgmtDb")...
  Information: Removed application "MasterBindingProject".
 
  Command succeeded with 0 errors, 0 warnings.
 
DeployAppDefinition:
  Microsoft (R) BizTalk Application Deployment Utility Version 3.8.368.0
  Copyright (c) 2006 Microsoft Corporation. All rights reserved.
 
  Information: Adding new BizTalk application "MasterBindingProject" to configuration database (server="EIPRACTICE4", database="BizTalkMgmtDb")...
  Information: Added application "MasterBindingProject".
 
  Command succeeded with 0 errors, 0 warnings.
 
UndeployOrchestrations:
  Adding assembly name 'MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3' to item group.
  Microsoft (R) .NET Global Assembly Cache Utility.  Version 2.0.50727.42
  Copyright (c) Microsoft Corporation.  All rights reserved.
 
 
  Assembly: MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3, processorArchitecture=MSIL
  Uninstalled: MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3, processorArchitecture=MSIL
  Number of assemblies uninstalled = 1
  Number of failures = 0
UndeployTransforms:
  Adding assembly name 'MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3' to item group.
  Microsoft (R) .NET Global Assembly Cache Utility.  Version 2.0.50727.42
  Copyright (c) Microsoft Corporation.  All rights reserved.
 
  No assemblies found matching: MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3
  Number of assemblies uninstalled = 0
  Number of failures = 0
UndeploySchemas:
  Adding assembly name 'MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3' to item group.
  Microsoft (R) .NET Global Assembly Cache Utility.  Version 2.0.50727.42
  Copyright (c) Microsoft Corporation.  All rights reserved.
 
  No assemblies found matching: MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3
  Number of assemblies uninstalled = 0
  Number of failures = 0
DeploySchemas:
  Microsoft (R) BizTalk Application Deployment Utility Version 3.8.368.0
  Copyright (c) 2006 Microsoft Corporation. All rights reserved.
 
  Information: Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3") to application "MasterBindingProject"...
  Serialized BizTalk assembly "MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3" from "E:\Malathi\MasterBindingProject\MasterBindingProject\MasterBindingProject.SampleProject\bin\Debug\MasterBindingProject.SampleProject.dll".
  Information: Validating resources (count=1)...
  * Validating resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3")...
  Information: Performing change requests...
  Information: Calling BeginTypeChangeRequest for all selected resource types...
  PerformingBeginChangeRequest
  Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3") to store.
  Information: * Performing change request on type "System.BizTalk:BizTalkAssembly" (count=1)...
  Information: Deploy server="EIPRACTICE4" database="BizTalkMgmtDb" assembly="C:\Users\tfssetup\AppData\Local\Temp\BT\PID2560\BizTalkAssembly\6e3d1d20a8ac89b404c04b91d92f0249\MasterBindingProject.SampleProject.dll"
  Information: Installed the "C:\Users\tfssetup\AppData\Local\Temp\BT\PID2560\BizTalkAssembly\6e3d1d20a8ac89b404c04b91d92f0249\MasterBindingProject.SampleProject.dll" assembly into the Global Assembly Cache. (force=True)
  Information: Deploy operation succeeded.
  Information: Deploy server="EIPRACTICE4" database="BizTalkMgmtDb" assembly="C:\Users\tfssetup\AppData\Local\Temp\BT\PID2560\BizTalkAssembly\6e3d1d20a8ac89b404c04b91d92f0249\MasterBindingProject.SampleProject.dll"
  Saved schema "MasterBindingProject.SampleProject.SchemaOut, MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3".
  Saved schema "MasterBindingProject.SampleProject.SchemaIn, MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3".
  Saved map "MasterBindingProject.SampleProject.Transform_1".
  Saved message type "MasterBindingProject.SampleProject.__messagetype_MasterBindingProject_SampleProject_SchemaIn".
  Saved message type "MasterBindingProject.SampleProject.__messagetype_MasterBindingProject_SampleProject_SchemaOut".
  Saved port type "MasterBindingProject.SampleProject.rprtInputPortType".
  Saved port type "MasterBindingProject.SampleProject.sprtOutputPortType".
  Saved orchestration "MasterBindingProject.SampleProject.SampleOrchestration".
  Saved schema "MasterBindingProject.SampleProject.SchemaOut, MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3".
  Saved schema "MasterBindingProject.SampleProject.SchemaIn, MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3".
  Saved map "MasterBindingProject.SampleProject.Transform_1".
  Saved message type "MasterBindingProject.SampleProject.__messagetype_MasterBindingProject_SampleProject_SchemaIn".
  Saved message type "MasterBindingProject.SampleProject.__messagetype_MasterBindingProject_SampleProject_SchemaOut".
  Saved port type "MasterBindingProject.SampleProject.rprtInputPortType".
  Saved port type "MasterBindingProject.SampleProject.sprtOutputPortType".
  Saved orchestration "MasterBindingProject.SampleProject.SampleOrchestration".
  Information: Installed the "C:\Users\tfssetup\AppData\Local\Temp\BT\PID2560\BizTalkAssembly\6e3d1d20a8ac89b404c04b91d92f0249\MasterBindingProject.SampleProject.dll" assembly into the Global Assembly Cache. (force=True)
  Information: Deploy operation succeeded.
  Information: Deployed the following 1 BizTalk assemblies:
  MasterBindingProject.SampleProject.dll
  Warning: If any of the assemblies were previously loaded by a Host Instance, it may be necessary to restart the Host Instance for changes to take effect.
  Information: Commit the change requests...
  * Performing EndTypeChangeRequest for resource type "System.BizTalk:BizTalkAssembly".
 
  Command succeeded with 0 errors, 0 warnings.
 
DeploySharedAssemblies:
  Deploying additional assemblies to GAC...
  Microsoft (R) .NET Global Assembly Cache Utility.  Version 2.0.50727.42
  Copyright (c) Microsoft Corporation.  All rights reserved.
 
  Assembly successfully added to the cache
  Finished deploying additional assemblies to GAC.
DeployTransforms:
  Microsoft (R) BizTalk Application Deployment Utility Version 3.8.368.0
  Copyright (c) 2006 Microsoft Corporation. All rights reserved.
 
  Information: Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3") to application "MasterBindingProject"...
  Serialized BizTalk assembly "MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3" from "E:\Malathi\MasterBindingProject\MasterBindingProject\MasterBindingProject.SampleProject\bin\Debug\MasterBindingProject.SampleProject.dll".
  Information: Validating resources (count=1)...
  * Validating resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3")...
  Information: Performing change requests...
  Information: Calling BeginTypeChangeRequest for all selected resource types...
  PerformingBeginChangeRequest
  Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3") to store.
  Information: PerformingEndChangeRequestsWithRollBack
  * Performing EndTypeChangeRequest for resource type "System.BizTalk:BizTalkAssembly".
  Error: Failed to add resource(s).
  Resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="MasterBindingProject.SampleProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc3224514a8161c3") already in store.
  1) Use BTSTask's overwrite flag or
  2) Set redeploy flag to true in BizTalk Project or
  3) Click overwrite all checkbox in Admin MMC 
  to update if the resource exists in the specified target application "MasterBindingProject".
  Overwrite flag will be ignored if the resource is associated with another application.
 
 
  Command failed with 1 errors, 0 warnings.
 
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1399,5): error MSB3073: The command "BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"E:\Malathi\MasterBindingProject\MasterBindingProject\MasterBindingProject.SampleProject\bin\Debug\MasterBindingProject.SampleProject.dll" -ApplicationName:"MasterBindingProject" -Options:GacOnAdd,GacOnImport,GacOnInstall" exited with code 1.
Done Building Project "E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\MasterBindingProject.Deployment.btdfproj" (Deploy target(s)) -- FAILED.

Build FAILED.

"E:\Malathi\MasterBindingProject\MasterBindingProject\Deployment\MasterBindingProject.Deployment.btdfproj" (Deploy target) (1) ->
(DeployTransforms target) ->
  C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1399,5): error MSB3073: The command "BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"E:\Malathi\MasterBindingProject\MasterBindingProject\MasterBindingProject.SampleProject\bin\Debug\MasterBindingProject.SampleProject.dll" -ApplicationName:"MasterBindingProject" -Options:GacOnAdd,GacOnImport,GacOnInstall" exited with code 1.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:19.43

-------------------------------------------------------------------

But,i don't have any such application available on my biztalk admin console.

This error is just breaking my head.Please do something.

Coordinator
Jan 21, 2011 at 3:02 PM

I think you are finally getting close...  I'm not sure what version of the Deployment Framework you had, but it looks like the newest version cleared up some of your issues.

This error (Resource X already in store) is because you have the same physical DLL specified in the Schemas, Transforms and Orchestrations ItemGroups.  A single assembly can only occur once inside BizTalk.  Since you are now building your entire application in one assembly, you'll want to keep the Schemas ItemGroup and delete the Transforms and Orchestrations ItemGroups.  Schemas must be deployed before any other artifacts, which is why for a single assembly you fall back to Schemas.  In the future, if you create separate BizTalk projects for Orchestrations and Transforms, then you will need to add back those ItemGroups.

The single assembly solution scenario is also demonstrated by the BasicMasterBindings sample project.

Thanks,
Tom

Jan 24, 2011 at 4:22 AM

Thanks tfabraham,

Finally i deployed my project successfully.

Thanks a lot.

 

Coordinator
Jan 24, 2011 at 4:55 AM

Great!  You're welcome.

Tom

Aug 22, 2013 at 10:09 AM
Hi Tom,
I am facing an issue in uninstalling the BTDF deployed app. After undeploy from start menu, When I try to uinstall it from control panel, the application folder is not deletedand PortBinding.xml remains there. And sometimes while reinstalling the same app portbinding file is not overwritten which leads to error if there is any change in portbinding master.
Is there any setting need to be done in btdf project file which removes application folder after uninstall.

Secondly, I am facing a strange issue. When I deploy my application using BTDF msi I get following error:

Error details: System.IO.FileNotFoundException: Could not load file or assembly 'Oracle.DataAccess, Version=2.111.7.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
File name: 'Oracle.DataAccess, Version=2.111.7.0, Culture=neutral, PublicKeyToken=89b483f429c47342'

BUT, if I deploy it using BizTalk build and msi it runs smoothly.
Please help me with these two issues.
Coordinator
Aug 23, 2013 at 6:31 AM
As long as you have UsingMasterBindings set to True in your .btdfproj you're using PortBindingsMaster.xml, so PortBindings.xml is just a throwaway, generated file. It doesn't get deleted by the MSI because the MSI didn't install it. Every time you run Deploy, PortBindings.xml is regenerated, so it doesn't make any difference that it stays there.

Are you using Deployment Framework 5.0 final release? Make sure that you have the same version both on dev workstations AND your build server, if any. You'll have to narrow down for me exactly where that error is coming from in the deployment output and some more context around it. Does it happen while deploying the app with BTDF from Visual Studio?

If you're on BizTalk 2009 or newer, you can also see if you have ToolsVersion="3.5" (4.0 for 2010) in the Project element in your .btdfproj.

Thanks,
Tom