Not ble to deploy application through BTDF framework in Visual Studio 2013

Hi All,

Tried to deploy the application which is working fine on Visual Studio 2010, but when I try to deploy the same application through Visual Studio 2013 it build sucessfully but not able to deploy the application.

I am getting bellow error

    Target _PreprocessBindings:
        Checking syntax of XML file 'C:\Projects\File\Deployment\PortBindingsMaster.xml'...
        Syntax of XML file 'C:\Projects\File\Deployment\PortBindingsMaster.xml' appears to be valid.
        Clearing file attributes for 'File.PortbindingsMaster.xml'.
        "C:\Program Files (x86)\Deployment Framework for BizTalk 6.0\Framework\DeployTools\xmlpreprocess.exe" /v /c /i:"C:\Projects\File\Deployment\PortBindingsMaster.xml" /o:"C:\Projects\File\Deployment\File.PortbindingsMaster.xml" /d:CurDir="C:\Projects\File" /s:""
        XmlPreprocess v2.0.18.0
        Copyright (c) 2004-2013 Loren M Halvorson
        XML File Preprocessor
        
        /s:: Argument expects a parameter
        
                
        C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1150,5): error MSB3073: The command ""C:\Program Files (x86)\Deployment Framework for BizTalk 6.0\Framework\DeployTools\xmlpreprocess.exe" /v /c /i:"C:\Projects\File\Deployment\PortBindingsMaster.xml" /o:"C:\Projects\File\Deployment\File.PortbindingsMaster.xml" /d:CurDir="C:\Projects\File" /s:""" exited with code 1. [C:\Projects\File\Deployment\File.Deployment.btdfproj]
    Done building target "_PreprocessBindings" in project "File.Deployment.btdfproj" -- FAILED.

    Done building project ".File.Deployment.btdfproj" -- FAILED.

Build FAILED.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.52

What I figure out is it is not able to generate the xml from SettingsFileGenerator.xml (it should create xml files for all the environment present in the SettingFileGenerator.xml).

Did i need to modify anything in btdf file or what I missed here.

July 17th, 2015 12:48pm

Hi,

I guess you have set the wrong value for RequireXmlPreprocessDirectives, can you please make it FALSE and run the deployment process again.

<RequireXmlPreprocessDirectives>false</RequireXmlPreprocessDirectives>

Regards,

Sharad

Free Windows Admin Tool Kit Click here and download it now
July 17th, 2015 1:06pm

Hi,

Can you check for InstallWizard.xml file because mainly this error is caused by this file only.

Regards,

Sharad

July 17th, 2015 1:32pm

HI Sagar ,

Try using the latest BTDF from Codeplex https://biztalkdeployment.codeplex.com/

Once installed try generating package from the latest BTDF template and newly build assembly (Schema,map,Orchestration ,external assembly ).

Thanks

Abhishek

Free Windows Admin Tool Kit Click here and download it now
July 17th, 2015 4:15pm

Hi Sagar,

Same issue is discussed in length on the official site of codeplex.

Refer: http://biztalkdeployment.codeplex.com/discussions/468906

InstallWizard.xml is a file generated unique to each project, ensure you have not copied it from some other project and using it for the current project which you are building.

July 18th, 2015 4:03am

I tried this but didn't work for me.
Free Windows Admin Tool Kit Click here and download it now
July 20th, 2015 1:10am

Thank you all for your response.

I missed to mentioned that when I create a msi using btdf then that msi works fine but when I try to deploy directly from visual studio then I get this error.

After so much of RnD i found that BizTalkDeploymentFrameworks.targets

 <MSBuild
      Projects="$(MSBuildProjectFullPath)"
      Properties="LoadedPropsFromEnvSettings=True;SkipExportSettings=True;$(PropsFromEnvSettingsDelimited)"
      Targets="$(TargetsAfterLoadPropsFromEnvSettings)"
      UseResultsCache="false" UnloadProjectsOnCompletion="true" />

In above file SkipExportSettings=True which cause me this problem.

This value is hardcoded there I am not sure why this is done but when I set it to False it works fine for me.

July 20th, 2015 1:23am

Hi Sagar ,

You can have different Environmental setting files for different environment ,Once you create a package through BTDF you just copy the package on different environment and try to deploy with Power shell script.

Thanks
Abhishek

Free Windows Admin Tool Kit Click here and download it now
July 20th, 2015 3:24am

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

Other recent topics Other recent topics