I am using BizTalk 2020 and I have a project that I recently upgraded from BizTalk 2006. I have into the following error:
BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"....\xxx.dll" -ApplicationName:"app1" -Options:GacOnAdd,GacOnImport,GacOnInstall Microsoft (R) BizTalk Application Deployment Utility Version 3.13.717.0 Copyright (c) Microsoft Corporation. All rights reserved.
EXEC : error : File "....\xxx.dll" is not a valid BizTalk assembly. [F:\GIT\xxx\xxx.Deployment\Deployment.btdfproj] Could not load file or assembly 'xxx.dll' or one of its dependencies. The system cannot find the path specified.
Command failed with 1 errors, 0 warnings.
What I have tried:
- I check all the referenced assemblies and they are correct and in the GAC.
- I have given access to the temp folder, for the account Network service.
- in the deployment section of the project I have provided the target application name.
I have seen that the orchestration that is failing is of type System.Biztalk.BiztalkAssembly
where the project that are of type System.Biztalk.Assembly
deployed successfully. Could as yet not determine why there is a difference in the projects.
I am using Deployment framework 5.8 if that is of help.
Due to the error message...
...you likely have an unwanted, incorrect version, incorrect .NET Framework version, or missing DLL referenced by your DLL.
I suggest downloading a free decompiler such as Telerik JustDecompile or JetBrains dotPeek, opening up your DLL in it, and carefully inspecting the references. The tool might even flag the problematic reference. Carefully check that the referenced DLL's exist on disk, that they are for the correct BizTalk version and matching .NET Framework version. There's a good chance that something was overlooked in the upgrade from BizTalk 2006.