Wednesday, March 19, 2014

Error : An attempt was made to load a program with an incorrect format.



There was a failure executing the receive pipeline: "BTAHL72XPipelines.BTAHL72XReceivePipeline, BTAHL72XPipelines, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "Unknown " Receive Port: "RPTest" URI: "C:\Users\tiwarmah\Desktop\TestIN\*.txt" Reason: Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft BizTalk Server 2013\Pipeline Components\Microsoft.Solutions.BTAHL7.HL72fDasm.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.


A message received by adapter "FILE" on receive location "RLTest" with URI "C:\Users\tiwarmah\Desktop\TestIN\*.txt" is suspended. 
 Error details: There was a failure executing the receive pipeline: "BTAHL72XPipelines.BTAHL72XReceivePipeline, BTAHL72XPipelines, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "Unknown " Receive Port: "RPTest" URI: "C:\Users\tiwarmah\Desktop\TestIN\*.txt" Reason: Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft BizTalk Server 2013\Pipeline Components\Microsoft.Solutions.BTAHL7.HL72fDasm.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.  
 MessageId:  {6857BA33-0489-46A6-87D8-FA2799623C50}
 InstanceID: {EC5417A2-2984-42F2-A500-539B4B7B5DFC}


Why it happened :  It happened because the BizTalk Installation is 64 bit and HL7 accelerator components are 32 bit compatible, so when default host which is 64 bit (BizTalkServerApplication) is used to contain HL7 components(32 bit) it errors. Make sure that the BizTalk host used by HL7 Accelerator is running under 32bit mode, if it is running in 64 bit mode, you will get this error.

What to do: Create a host with 32bit mode and use the instance of this host for HL7 Accelerator .


No comments:

Post a Comment