Quantcast
Channel: biztalkdeployment Forum Rss Feed
Viewing all 1089 articles
Browse latest View live

New Post: Add Reference To Another BizTalk Application during deploy

$
0
0
Thanks, I knew it was in there somewhere "Reference" didn't turn anything up in searches for some reason.

That works, but now BTDF tries to start the application I am trying to reference before bouncing hosts and turning on the actual application I am deploying. Any way to bypass trying to start the referenced application? I have a few orchestrations that I keep unbound and unenlisted to avoid confusion (They are unused, versioned orchestrations that may be put into use at a later date)

New Post: Add Reference To Another BizTalk Application during deploy

$
0
0
Add this property to your .btdfproj:
<StartReferencedApplicationsOnDeploy>false</StartReferencedApplicationsOnDeploy>
Thanks,
Tom

New Post: Deploy services to two different sites

$
0
0
I'm trying to help someone set up a deployment that involves two web services. They want one service to go in the default web site and the other to go in a different site. Is there a way to this with the built in functionality of BTDF?

I understand using IISMetabasePath to change the target website, but that changes it for everything. Is there a way to use one IISMetabasePath for one service and a different one for a second service in the same BTDF project?

Thanks

New Post: Deploy services to two different sites

$
0
0
You could give this a try in your .btdfproj:
<Target Name="Deploy2ndWebService" AfterTargets="DeployVDirs">
   <CreateProperty Value="IIS://localhost/w3svc/2/Root">
      <Output TaskParameter="Value" PropertyName="IISMetabasePath" />
   </CreateProperty>

   <CreateItem
       Include="*" AdditionalMetadata="Vdir=MyVDir;Physdir=..\OtherWebService;AppPool=DefaultAppPool">
      <Output TaskParameter="Include" ItemName="VDirList"/>
   </CreateItem>

   <CallTarget Targets="DeployVDirs" />
</Target>
The idea being that the normal built-in process runs first, then this custom target runs. It overrides the IISMetabasePath and VDirList, then calls DeployVDirs again but this time the new values should be in effect.

This is completely untested, but it seems like it should work...

Thanks,
Tom

New Post: How to add Stop Application in btdfproj file

$
0
0
Hi ,
I am new to BTDF. I am using Biztalk 2013 along with BTDF 5_1 Beta2 . I want to do deploy the MSI with BizTalk app under a group in Start>All Programs e.g. Start>All Programs>BizTalk Apps>App1, App2 .I donot find this Developer\generate-install-script.js .Could you please help me with this ?

New Post: Executing Custom Sql Script using BTDF

$
0
0
Hi,
I am using Biztalk 2013 and BTDF 5_1 Beta2. I want to execute a sql script where I pass the server name and filename as parameter from SettingsFileGenerator file.I have used AdditionalFiles tag to copy my sql script.
I have used this
<Exec Command="sqlcmd.exe -S $(SQLScriptDataBase) -i ..\$(SQLScriptFileName)" .
When I place this in CustomRedist , I am not able to create a MSI and it fails with error:
error MSB3073: The command "sqlcmd.exe -S -i ..\" exited with code 1 . May be it is not able to set the variables when I place it in CustomRedist. But it works fine when i try to deploy from VisualStudio using BTDF.

When I remove it from CustomRedist and put it in any other custom target , I am able to create a MSI but it fails when I try to deploy using Visual Studio BTDF deploy as it is not able to find the Sqlfile.
Is there a way where I can achieve both of this .

With Regards,
Nikhil Rai

New Post: Executing Custom Sql Script using BTDF

$
0
0
Hi Nikhil,

Putting the command in the other custom target that you created was the correct approach. All relative paths are based on the folder that contains the .btdfproj. If you use AdditionalFiles, which only affects the MSI generation and thus server deploys, the files will all end up one level above the .btdfproj folder. If that is the same location where you currently have the SQL files then you can use the same relative path for server and Visual Studio deployments. If you keep the SQL files in a different folder, then it's best not to use AdditionalFiles and just copy the files to the same directory structure inside the CustomRedist target (the Advanced sample app contains a copy step like that). That way the path is the same whether Visual Studio or MSI deploy.

In addition to that, I think you need to add SQLScriptDataBase and SQLScriptFileName to the PropsFromEnvSettings ItemGroup, because it appears that they are not being carried over from your settings spreadsheet.

Thanks,
Tom

New Post: How to add Stop Application in btdfproj file

$
0
0
Please see the documentation installed with V5.1. The topic is Deploying to a BizTalk Server Group\Packaging an Application for Deployment, subsection Customizing the Default WiX Template.

Here is a snippet:

To customize the Start menu shortcuts:

1) Copy the file RedistComponentGroup.xslt from the Deployment Framework for BizTalk install folder, Developer subfolder into your deployment project folder (where the .btdfproj is located). If you wish, rename the file but keep the .xslt extension.

2) In your .btdfproj, set the WixHeatTransformFile property to RedistComponentGroup.xslt or your custom name. The property may be included in any PropertyGroup, but is commonly placed in the PropertyGroup that includes ProductId and ProductVersion.

<PropertyGroup>
...
<WixHeatTransformFile>RedistComponentGroup.xslt</WixHeatTransformFile>
...
</PropertyGroup>

3) Modify the XSLT file as desired. Your local copy of the XSLT will be used when generating an MSI for server deployment.

Thanks,
Tom

New Post: How to add Stop Application in btdfproj file

$
0
0
Hi,
I am unable to find the sepcified .js file and also not getting exactly where to change in xslt to get the subfolder. Please help.

New Post: How to add Stop Application in btdfproj file

$
0
0
Hi abhishek1301,

Are you referring to my previous response? There is no mention of a .js file. Are you using v5.1?

If you want to add a folder in the Start menu, it must be done in the wxs file. Here is another snippet from the documentation:

To customize the MSI definition:

1) Copy the file GenericBizTalkMSI.wxs from the Deployment Framework for BizTalk install folder, Developer subfolder into your deployment project folder (where the .btdfproj is located). If you wish, rename the file but keep the .wxs extension as it is a WiX convention.

2) In your .btdfproj, set the WixProjectFile property to GenericBizTalkMSI.wxs or your custom name. The property may be included in any PropertyGroup, but is commonly placed in the PropertyGroup that includes ProductId and ProductVersion.

<PropertyGroup>
...
<WixProjectFile>GenericBizTalkMSI.wxs</WixProjectFile>
...
</PropertyGroup>

3) Modify the WXS file as desired. Your local copy of the WXS will be used when generating an MSI for server deployment.

Thanks,
Tom

New Post: How to add Stop Application in btdfproj file

$
0
0
Thanks tfabraham. It works using the below method. I just wonder why we do not get rid of shortcuts from startmenu when we undeploy from the startmenu ?
All the shortcuts are removed only when we uninstall it from the control panel. Is there a way where we can remove the shortcuts from startmenu when we uninstall the application.


New Post: Executing Custom Sql Script using BTDF

$
0
0
Hi tfaabraham,
I tried it without using additionalfiles element and it works now.
Thanks for your help.

\Nikhil Rai


New Post: How to add Stop Application in btdfproj file

$
0
0
Deployment is a two-step process: install the MSI, deploy the app. Undeployment is a two-step process: undeploy the app, uninstall the MSI. When you say "when we uninstall the application" you mean "when we undeploy the application." The answer to that is no, because the application is not fully removed until you undeploy it and uninstall the MSI. [Documentation]

Thanks,
Tom

New Post: Tool for seeing what MSBuild Properties and Items evaluate to at runtime

$
0
0
Here's a very simple app that can be run against your .btdfproj to see what all of the properties and items evaluate to at runtime. Alternatively, you can also execute your normal target with MSBuild in verbose mode to see a ton of detail.

New Post: Handling Multiple solutions with multiple Projects for one BTS application BTDF Deployment

$
0
0
Firstly i thank code plex community for providing valuable support and contribution
im fairly new to BTDF although i have previously used it for deployments as per project structured in tutorials and using master binding files

now i'm facing a different environment configuration we have lots of common applications (Schemas and common assemblies)
and core applications in biztalk and each one them gets resources varying from multiple solutions with multiple projects involving transforms orchestrations, helpers, sso configs, policys
into one application

well the structure is no where near as described to take advantage of VS addin i have no idea where to start and how to build and Deploy multiple solutions into one btdf project file

i was hoping this community could give me a head start with some directions

Here is the sample structure

Biztalk application: sample core

folder structure:
 Dev -->CORE -->Internalsvc--> sampleA-->(sampleA biztalk proj - maps orch), (sampleA Helper proj)
                               sampleB-->(sampleB biztalk proj - maps orch ), (sampleB Helper proj)


 Dev -->CORE -->externalsvc--> sampleC-->(sampleC biztalk proj - maps orch), (sampleC Helper proj)
                               sampleD-->(sampleB biztalk proj - maps orch ), (sampleD Helper proj)
all these dlls go into a single Biztalkapplication "sample core"

New Post: File adapter paths get full access permissions

$
0
0
Is there a way to limit the permissions grants on file adapter paths? Currently, $(BTSACCOUNT) is granted full access. My server admin folks frown on that.

New Post: File adapter paths get full access permissions

$
0
0
If you don't use Full Control then you have to get very specific with the permissions. There is no way to override the default behavior. However, if you wish you can start with the source code for the custom MSBuild task SetUpFileAdapterPaths and modify it to suit your needs.

If you were to create your own custom task, you could use it by overriding the default target DeployFileAdapterPhysicalPaths and pointing to your custom task.

You can also disable the path configuration by including the property ManageFileAdapterPhysicalPaths set to False.

Thanks,
Tom

New Post: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

$
0
0
Hi,

I'm working on a deployment for a BizTalk 2013 application. I'm developing on a Windows 2012 machine.
When I try to deploy my solution, the DeployComponents target fails with the error 'This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'. As you can see below, the 2.0 gacutil is being used here whereas all my assemblies are built for .NET 4.0. The task GetFrameworkPath apparently comes up with 2.0 instead of 4.0. Where is the code for the GetFrameworkPath task located, I couldn't find it in the DeploymentFramework.BuildTasks source code. I did install the latest version of the BTDF.
Any tips on why the wrong .NET Framework version is being used?

Using .NET Framework Install Path 'C:\Windows\Microsoft.NET\Framework\v2.0.50727'.

Target DeployComponents:
            Deploying components to GAC...
            "D:\BizTalkApplications\ESB\1.0\Deployment\Framework\DeployTools\gacutil.exe" /i "..\ESB.Utilities.dll"
            Microsoft (R) .NET Global Assembly Cache Utility.  Version 2.0.50727.42
            Copyright (c) Microsoft Corporation.  All rights reserved.

            Failure adding assembly to the cache:   This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Regards,
Nils Gruson

New Post: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

$
0
0
Hi Nils,

When you say "the latest version", do you mean the v5.1 beta? If not, that is the only supported path for BizTalk 2013. The correct version of GacUtil.exe is installed during the Deployment Framework installation when it detects which version of BizTalk is installed on the machine. I'm assuming that you installed the Deployment Framework after installing BizTalk 2013? Another possibility -- are you just building this all locally, or on a build server? Sometimes people upgrade BTDF on the developer side but forget to upgrade the build server.

Thanks,
Tom

New Post: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

$
0
0
Hi Tom,

I wasn't aware there was a 5.1 version. I installed it and I got it working ok now. I'm building and deploying on my dev environment.
One note: after installation of 5.1 I had to alter the registry in order to be able to make a build.
I needed to copy the values from HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/DeploymentFrameworkForBizTalk to
HKEY_LOCAL_MACHINE/SOFTWARE/DeploymentFrameworkForBizTalk. I've seen this earlier with version 5.0 though.
Since it's a 64-bit server, the registry values end up in the Wow6432node registry key. Apparently the framework isn't aware (enough) that the server where the build is being made is 64-bit? Minor issue imo, I can live with the workaround ;).

Thanks,
Nils
Viewing all 1089 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>