For years, the BizTalk Deployment Framework (BTDF) has supported the BizTalk community and its many BizTalk versions. I have utilized this utility to add a more enterprise spin on my integration deliveries. BTDF has added automated deployments and promotions to my deliveries and has allowed me to streamline DevOps on client projects.
Problem
I recently ran into a local deployment error that I have never seen before. Hopefully the following details will help you in the case that you see similar issues:
BTSTask.exe AddResource -Type:BizTalkAssembly -Overwrite -Source:"..\<CompanyName>.Common.Canonical\bin\Release\<CompanyName>.Common.Canonical.dll" -ApplicationName:"<CompanyName>.Common.Canonical" -Options:GacOnAdd,GacOnImport,GacOnInstall
Microsoft (R) BizTalk Application Deployment Utility Version 3.11.158.0
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
LoadLibraryFromPath: FQ Dll C:\Windows\system\oci.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Windows\oci.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services\oci.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services\oci.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Program Files\Microsoft Host Integration Server 2013\SysWOW64\oci.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Program Files\Microsoft Host Integration Server 2013\system\oci.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\oracle\product\11.2.0\client_32\bin\oci.dll found
LoadLibraryFromPath: FQ Dll C:\Windows\system\SQLLib80.dll is not found, error: 0x7e
…
LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\IBM\WebSphere MQ\bin64\SQLLib80.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\IBM\WebSphere MQ\bin\SQLLib80.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\IBM\WebSphere MQ\tools\c\samples\bin\SQLLib80.dll is not found, error: 0x7e
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1250,5): error MSB3073: The command "BTSTask.exe AddResource -Type:BizTalkAssembly -Overwrite -Source:"..\<CompanyName>.Common.Canonical\bin\Release\<CompanyName>.Common.Canonical.dll" -ApplicationName:"<CompanyName>.Common.Canonical" -Options:GacOnAdd,GacOnImport,GacOnInstall" exited with code -1. [C:\Infrastructure\Schemas\<CompanyName>.Common.Canonical\Deployment\Deployment.btdfproj]
Done building target "DeploySchemas" in project "Deployment.btdfproj" -- FAILED.
Done building project "Deployment.btdfproj" -- FAILED.
The root cause was the recent release, and automatic Windows update to my VM, of a Microsoft Security update that prevents 3rd party dll from executing code.
Solution
The problem began just after a forced Windows update and subsequent restart. I traced the problem down to a single Security Update for Microsoft Windows (KB3126587) install. The solution calls for a new update from Microsoft under the Connection to Oracle database fails when you use Microsoft ODBC or OLE DB Driver for Oracle or Microsoft DTC in Windows (KB3147071). Apply this update, and all will work as expected.