Could not load file or assembly 'Microsoft.Adapters.SAP.SAPGInvoker.dll'

Bad surprise today, When trying to create a receive location WCF-SAP in Biztalk administration console, I received this nice message :

    ===================================
    
    Exception has been thrown by the target of an invocation. (mscorlib)

    ===================================

    Exception has been thrown by the target of an invocation. (mscorlib)

    ===================================

    Could not load file or assembly 'Microsoft.Adapters.SAP.SAPGInvoker.dll' or one of its dependencies. The specified
    module could not be found. (Microsoft.Adapters.SAP)

    ------------------------------
    Program Location:

        at Microsoft.Adapters.SAP.SAPConnectionUri.ParseUri(Uri uri)
        at Microsoft.Adapters.SAP.SAPConnectionUri..ctor()

My Configuration was using the SAP RFC SDK 7.00 Unicode client package on a 64 bits server. After having triple checked the configuration files and installation I was starting to despair. The adapter has been running for months without issue on a dynamic send port.

I used ProcessMonitor and Process Explorer to monitor what was happening when i was opening the adapter configuration windows and after a while I realized the msvcr71.dll was missing.

After deploying it in the SYSWOW64 folder it worked fine.

In the installation guide there is a reference to Visual C++ runtime dll for the SAP RFC SDK 7.10 but not for the earlier versions.

Let’s hope I will save someone some headache on that one.

Edit 2015/01/21 Installing BizTalk 2013R2 then configuring BizTalk Adapter lead me to the same issues. Following the documentation, the only missing information is that you have to download 2 packages from SAP. Windows on x64 64bits (or the other 64bit depending on your HW) and Windows Server on IA32 32bits. The 32 bits version is only used by Visual Studio and the administration console (afaik).