Update Adapters with Host Names in BizTalk Powershell Extensions

After you add Host and Host-Instances to BizTalk, they are not useful and cannot be associated with Send/Receive ports until you relate the Host to the Adapter. This can be done in BizTalk Admin Console, but below is a program that allows you to do it with the BizTalk Powershell Extensions. See related script to […]

How to set Isolated vs In-Process when creating BizTalk Host with Powershell

The following shows how to set the $HostType for the BizTalk Powershell Extensions. if ($HostType -eq "Isolated")    {      $HostTypeCode = 2  #Isolated    }    else    {      $HostTypeCode = 1  #In-Process    } $temp = New-Item -path $hostName -HostType:$HostTypeCode -NtGroupName:$myNTHostGroupName -AuthTrusted:$AuthTrusted See full function in this blog about Adding BizTalk Hosts and Hostinstances […]

BizTalk PowerShell Extensions not Found (not Installed)

Error: No snaps-ins have been registered for Windows PowerShell You run the following: <pre>cls Add-PSSnapIn -Name BiztalkFactory.PowerShell.Extensions  #NOTE: Must be in 32-bit version of Powershellto use this SnapIn </pre>   And you get this error: <pre>Add-PSSnapIn : No snap-ins have been registered for Windows PowerShell version 3. </pre> First – make sure you are using a […]

BizTalk Pipeline Component Won’t Go into Debug Mode in Visual Studio Debugger

The following may help with a variety of custom pipeline component issues, including why your “Debug” is not catching when you expect it to. There were times today, where I would do “Debug Attach” to the BizTalk Host Instance, and the component would never go into debug mode. 1. Check that date/time of the .DLL […]

BizTalk 2016 – Could not load file or assembly ‘WinSCPnet, Version=1.2.10.6257

Error: The adapter failed to transmit message going to send port “sp_Test_SFTP” with URL “sftp://sftp.mycompany.com:22/%MessageID%.xml”. It will be retransmitted after the retry interval specified for this Send Port. Details:”System.IO.FileLoadException: Could not load file or assembly ‘WinSCPnet, Version=1.2.10.6257, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf’ or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500) File name: ‘WinSCPnet, Version=1.2.10.6257, Culture=neutral, […]

BizTalk Pipeline Component Unzip and Select Only Files Matching Mask

I started with this excellent working unzip pipeline component here (by Rui Machado). I made the following changes to that code: 1) Put it in MyCompany.Common.etc… namespace and project (not shown here) 2) Added a Property Bag Item called FileMask (and a one for future use called “ParmReserved1” (this is standard coding, so I didn’t […]