Connection to SAP Business One Failed

Component

Sana Web Service for SAP Business One

Symptom

The error below may occur when you click Test connection in Sana Admin to check connection between Sana and SAP Business One:

The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

It occurs because of the wrong Web service configuration.

Solution

There is the <handlers> section in the Web.config file of the Web service. There must be the handler like shown below with the following attributes:

  • resourceType

  • requireAccess

  • preCondition

<add name="SVC" path="*svc" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />

If it's different in your Web.config file, replace it with the one above.