This weekend, after installing .NET Framework 4.0 in a BizTalk Server 2006 R2 environment, the BizTalk Adapter 2.0 for mySAP Business Suite started to throw the following error when it tried to receive data from the SAP system.
“Event Source: BizTalk Adapter v2.0 for mySAP Business Suite
Description: Error in Check Transaction: Failed to load the runtime.
(Exception from HRESULT: 0x80131700)”

📝 One-Minute Brief
Troubleshooting the “Failed to load the runtime” error (Error in Check Transaction) when using the BizTalk Adapter 2.0 for mySAP Business Suite. This issue typically occurs during the installation or configuration phase when the adapter cannot find the required SAP client binaries. The fix involves ensuring the correct SAP Front End (GUI) or SAP RFCSDK is installed and, crucially, that the DLL paths are correctly registered in the system’s Environment Variables.
Cause
This issue occurs after installing .NET Framework 4.0. The registration of the assembly used by mySAP Business Suite does not specify the correct version of the .NET Framework. When .NET Framework 4.0 is installed, the assembly will try to use the newer framework and then raise this error.
Solution
You need to manually reregister the sapreceiver.dll (this DLL is usually in this folder: C:\Program Files\Microsoft BizTalk Adapter v2.0 for mySAP Business Suite\). To accomplish that, you need to:
- Execute cmd (Start → cmd)
- Type cd C:\Windows\Microsoft.NET\Framework\v1.1.4322.
- And execute the following command to fix the problem:
- regasm.exe “C:\Program Files\Microsoft BizTalk Adapter v2.0 for mySAP Business Suite\sapreceiver.dll”
Note: When you install .NET Framework 4.0 in older versions of BizTalk Server like BizTalk Server 2006 or 2006 R2, normally, you will also have problems with the Enterprise Single Sign-On Service for the exact same reasons and the solution is also to manually reregister the DLL but this time the SSOSQL.dll. To find more about this error check: Fixing BizTalk ENTSSO – Could not create SSOSQL. To fix the problem, reinstall SSO or try ‘regasm SSOSQL.dll’ from a Visual Studio command prompt.
Hi Sandro, what’s the best way to have a SAP instance that I can test with BizTalk. I need to do a POC and I have MSDN subscription so I have BizTalk.. but from where do I get hold SAP. Is there some kind of a free or trial version available. Any pointers will be helpful.