System.Runtime.InteropServices.COMException (0x80040154)

Symptom

When you click OK after adding a new connection in the SAP Business One Connector global configuration, you may get the following error message:

System.Runtime.InteropServices.COMException (0x80040154): 
Retrieving the COM class factory for component with CLSID {9DB232DC-50D6-4AAF-BA35-E510E16B2056} 
failed due to the following error: 80040154.

Cause

The application pool identity that the connector web service runs under needs full permission to the SAP DI Server installation directory.

Resolution

Ensure that the application pool identity the connector web service runs under has full permission on the SAP DI Server installation directory.