BTDF / DeploymentFramework

The Deployment Framework for BizTalk is the most powerful and customizable, yet easy-to-use toolkit for deploying and configuring your BizTalk solutions.
MIT License
53 stars 24 forks source link

error MSB3030: Could not copy the file #332

Closed tfabraham closed 6 years ago

tfabraham commented 6 years ago

Hi I am using deployment framework 5.5 for thr first time on a project which already has mature and exisiting Biztalk solution based on 2010.

I am trying to deploy using this tool but till data not sucrssful. The error I am getting is error MSB3030: Could not copy the file

In more detail The error is more confusing.

All our DLLs have name such as sdm.pubsub3.Schemas.dll

but the error below only pick pubsub3.Schemas.dll"

C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.WiXSetup.targets(113,5): error MSB3030: Could not copy the file "..\pubsub3.Schemas\bin\Debug\pubsub3.Schemas.dll" because it was not found. [C:\SDM_DEV\Trunk\Code\DELIVERY\pubsub3\Deployment\Deployment.btdfproj] C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.WiXSetup.targets

I have attached my .btdproj file.

Please anyone can point me to the right direction.

Thanks neeraj

Attachments

Deployment.btdfproj sdm.pubsub3.UAT1.BindingInfo.xml bitalk.PNG

This work item was migrated from CodePlex

CodePlex work item ID: '10594' Vote count: '1'

tfabraham commented 6 years ago

[tfabraham@4/16/2014] Hi neeraj, Most, if not all, of the DLLs that you are referencing in AdditionalFiles items belong in Schemas, Orchestrations, Transforms and Components items. Please take some time to go through the tutorial and review the documentation on how to configure these references.

http://www.tfabraham.com/btdfdocs/v5_5/CreateaDeploymentProjectfortheHe.html http://www.tfabraham.com/btdfdocs/v5_5/ArtifactTypes.html

tfabraham commented 6 years ago

[neerajk@4/17/2014] Thanks,

I guess my issue is the folder structure, here in this project. Deployment Framework is expecting "pubsub3.schemas" without "" but what I have here is "schemas" etc. Now I can see how $ProjectName it is being configured in the BizTalkDeploymentFramework.targets file but I don't want to modify this unless and untill I understand the impact.

Is there a way where I can modify in Deployment.BTDFProj and expect it to work? Any help/or suggesting will be really helpful to get Deployment Framework working here. Regards, Neeraj

tfabraham commented 6 years ago

[tfabraham@4/17/2014] The folder structure is not the issue. The Deployment Framework supports any kind of folder structure, and you can name your folders and files any way you like.

You should start by deleting all of the AdditionalFiles items and properly configuring your DLL's using Schemas, Orchestrations, Components, etc. items. You do not need to change ProjectName to make things work. Please review the sample applications and the documentation that I referenced above.

tfabraham commented 6 years ago

[UnknownUser@4/22/2014]

tfabraham commented 6 years ago

[neerajk@4/22/2014] Hi, I have got as FAR as Creating the MSI file and able to run it(though unsuccessfully). I guess the issue is with Binding File.

Since this project is already deploying BizTalk using combination of NANT/Powershell etc. They have pretty complicated Binding File. Please see attached. I have few questions if you could help me with.

  1. Shall I create 'Deployment' project without using the options 'Deploy BizTalk Biniding =True'
  2. How My PortBinding File in the deployment folder will pick the structure of existing Binding File(please see attached.)
tfabraham commented 6 years ago

[neerajk@4/22/2014] I HAVE ADDED SCREEN OF THE ERROR.

tfabraham commented 6 years ago

[UnknownUser@4/22/2014]

tfabraham commented 6 years ago

[neerajk@4/22/2014] EXEC : error : Failed to add resource(s). [C:\Program Files (x86)\pubsub3 for B izTalk\1.0\Deployment\Deployment.btdfproj] Resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="sdm.pubsub3.schemas, Version=14.3.111.11111, Culture=neutral, PublicKeyToken=5ff3f05752dba8e8") al ready 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 "sdm.pub sub3.test". Overwrite flag will be ignored if the resource is associated with another app lication.

Command failed with 1 errors, 0 warnings.

C:\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Framework\BizTalkDepl oymentFramework.targets(1352,5): error MSB3073: The command "BTSTask.exe AddRes ource -Type:BizTalkAssembly -Source:"..\sdm.pubsub3.Schemas.dll" -ApplicationNa me:"sdm.pubsub3.test" -Options:GacOnAdd,GacOnImport,GacOnInstall" exited with c ode 1. [C:\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Deployment.bt dfproj] Done Building Project "C:\Program Files (x86)\pubsub3 for BizTalk\1.0\Deploymen t\Deployment.btdfproj" (Deploy target(s)) -- FAILED.

Build FAILED.

"C:\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Deployment.btdfproj" (Deploy target) (1) -> (PreprocessBindings target) -> C:\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Framework\BizTalkDe ploymentFramework.targets : warning : PortBindings.xml : No matches found for X Path expression '//ApplicationName'. [C:\Program Files (x86)\pubsub3 for BizTal k\1.0\Deployment\Deployment.btdfproj]

"C:\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Deployment.btdfproj" (Deploy target) (1) -> (DeploySchemas target) -> EXEC : error : Failed to add resource(s). [C:\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Deployment.btdfproj] C:\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Framework\BizTalkDe ploymentFramework.targets(1352,5): error MSB3073: The command "BTSTask.exe AddR esource -Type:BizTalkAssembly -Source:"..\sdm.pubsub3.Schemas.dll" -Application Name:"sdm.pubsub3.test" -Options:GacOnAdd,GacOnImport,GacOnInstall" exited with code 1. [C:\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Deployment. btdfproj]

1 Warning(s)
2 Error(s)

Time Elapsed 00:00:07.83 Project "C:\Program Files (x86)\pubsub3 for BizTalk\1.0\Deployment\Framework\Bi zTalkDeploymentFramework.ServerExecute.targets" on node 1 (Deploy target(s)). Copy: Copying file from "....\DeployResults\DeployResults.txt" to "....\DeployRes ults\DeployResults_PCKMA0416_20140422_1710.txt". PauseForError:


* FAILED! ***


Press a key to continue...

tfabraham commented 6 years ago

[tfabraham@4/22/2014] The attached bindings file is actually very small. Do yourself a favor and delete all of the elements inside . They're not necessary and just leave you with a huge bindings file. After removing them your bindings file is only 122 lines long.

As for your error message, it's telling you that the DLL sdm.pubsub3.schemas, Version=14.3.111.11111, Culture=neutral, PublicKeyToken=5ff3f05752dba8e8 is already deployed into BizTalk, so it can't deploy it again. If you are running the Deploy step after installing the MSI, and the app is already deployed into BizTalk, then you need to use the Redeploy option instead, or Undeploy then Deploy.

tfabraham commented 6 years ago

[neerajk@4/29/2014] Thanks, for the pointers. It worked out for me. Please close the issue.

tfabraham commented 6 years ago

[UnknownUser@4/29/2014]

tfabraham commented 6 years ago

Issue closed by tfabraham with comment User requested to close issue

Reason closed As Designed