none
Unable to deploy using BTDF from VS 2013

    Question

  • Hi All,

    I am unable to deploy my solution directly from vs using BTDF but I can build package and able to deploy the package successfully without any issue.

    Here is the error I get while trying to deploy from VS using BTDF. 

    Any help would be appreciated. 

    Error Message: 

    Assembly successfully added to the cache
      Finished deploying additional assemblies to GAC.
    UndeployPipelines:
      Adding assembly name 'TestProj.Pipelines, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c49f22a4f8802776' to item group.
      "C:\Program Files (x86)\Deployment Framework for BizTalk 5.6\Framework\DeployTools\gacutil.exe" /u "TestProj.Pipelines, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c49f22a4f8802776"
      Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.1
      Copyright (c) Microsoft Corporation.  All rights reserved.
      
      No assemblies found matching: TestProj.Pipelines, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c49f22a4f8802776
      Number of assemblies uninstalled = 0 
      Number of failures = 0
    DeployPipelines:
      BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"..\TestProj.Pipelines\bin\Debug\TestProj.Pipelines.dll" -ApplicationName:"TestProj" -Options:GacOnAdd,GacOnImport,GacOnInstall
      Microsoft (R) BizTalk Application Deployment Utility Version 3.11.158.0
      Copyright (c) 2014 Microsoft Corporation. All rights reserved.
      
    EXEC : error : File "..\TestProj.Pipelines\bin\Debug\TestProj.Pipelines.dll" is not a valid BizTalk assembly. [D:\Deployment\Deployment.btdfproj]
      Could not load file or assembly 'D:\TestProj.Pipelines\bin\Debug\TestProj.Pipelines.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
      
      
      Command failed with 1 errors, 0 warnings.
      
    C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1470,5): error MSB3073: The command "BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"..\TestProj.Pipelines\bin\Debug\TestProj.Pipelines.dll" -ApplicationName:"TestProj" -Options:GacOnAdd,GacOnImport,GacOnInstall" exited with code 1. [D:\Deployment\Deployment.btdfproj]
    Done Building Project "D:\Deployment\Deployment.btdfproj" (Deploy target(s)) -- FAILED.

    Build FAILED.

    "D:\Deployment\Deployment.btdfproj" (Deploy target) (1) ->
    (DeployPipelines target) -> 
      EXEC : error : File "..\TestProj.Pipelines\bin\Debug\TestProj.Pipelines.dll" is not a valid BizTalk assembly. [D:\Deployment\Deployment.btdfproj]
      C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1470,5): error MSB3073: The command "BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"..\TestProj.Pipelines\bin\Debug\TestProj.Pipelines.dll" -ApplicationName:"TestProj" -Options:GacOnAdd,GacOnImport,GacOnInstall" exited with code 1. [D:\Deployment\Deployment.btdfproj]

        0 Warning(s)
        2 Error(s)

    Time Elapsed 00:00:54.79

    

    Saturday, August 19, 2017 2:35 PM

Answers

  • Hi Subrata,

    Thank you for posting on MSDN forum.

    Please verify below points.

    • Check whether you have any references for TestProj.Pipelines.dll
    • Check which version of framework is used to build these assemblies 

    This errors happens when the DotNet framework you are using is of older version than the one used to build the assembly. You need to check which version of framework is used to build those assemblies and then use the same or higher to debug too.

    Thanks

    Kamlesh Kumar

    Sunday, August 20, 2017 11:13 AM
    Moderator
  • Hi Thanks for your response.

    Yes all the point you mentioned are were in place.

    Actually  BTsTasks.exe was missing not sure how, but placing the BtsTasks.exe in the correct place solved the problem. 

    Friday, September 1, 2017 11:48 PM

All replies

  • Hi Subrata,

    Thank you for posting on MSDN forum.

    Please verify below points.

    • Check whether you have any references for TestProj.Pipelines.dll
    • Check which version of framework is used to build these assemblies 

    This errors happens when the DotNet framework you are using is of older version than the one used to build the assembly. You need to check which version of framework is used to build those assemblies and then use the same or higher to debug too.

    Thanks

    Kamlesh Kumar

    Sunday, August 20, 2017 11:13 AM
    Moderator
  • Hi Thanks for your response.

    Yes all the point you mentioned are were in place.

    Actually  BTsTasks.exe was missing not sure how, but placing the BtsTasks.exe in the correct place solved the problem. 

    Friday, September 1, 2017 11:48 PM