For no reason, one of my BizTalk 2006 R2 Lab environment begin to appear the following error:
“message sent to adapter “FILE” on send port “SEND_EDI_INVOICE: FILE” with URI “C:\Projects\ Ports\OUT_EDI_INVOIC\%MessageID%_%SourceFileName%” is suspended.
Error details: There was a failure executing the send pipeline: “EDISendSMimeEncode, Version=1.0.0.10, Culture=neutral, PublicKeyToken=4dbf1ba6edc1a1f4” Source: “MIME/SMIME encoder” Send Port: “SEND_EDI_INVOICE_FILE” URI: “C:\Projects\Ports\OUT_EDI_INVOIC\%MessageID%_%SourceFileName%” Reason: Unable to initialize.
Please ensure that exsmime.dll has been registered in the system.”
This is a strange behavior occurs in a custom pipeline that uses MIM/SMIME encoder. The solution that I found to solved the problem was the first solution presented here.
Solution 1
- Open the command prompt.
- cd C:\Program Files\Microsoft BizTalk Server …\
- and execute the following command:
regsvr32 exsmime.dll
After that, I started looking for my “exsmime.dll” file in my BizTalk environment and to my surprise, there was none! yeh… But I found a backup file of that specific file in this directory with the following name:
- ExsmimeBak.dll
So I try to implement the solution 2 described below to see if it also fixed the problem and to my surprise it also solved my problem.
Solution 2
- Open the command prompt.
- cd C:\Program Files\Microsoft BizTalk Server …\
- and execute the following command:
regsvr32 ExsmimeBak.dll