Registering the dox42 Server SAP Module for dox42 Server

Prev Next

You need to register the dox42 Server SAP Module in the web.config in order to use it with dox42 Server.

Prerequisites

Steps

  1. Copy the following assemblies to the bin folder of your dox42 Server (C:\dox42Server\bin):

    • SAPDataEngine.dll

    • dox42SAPLicence.dll

    • ERPConnect40.dll

      Note

      You can download this library from the SAP Software center. Search for and download the SAP KERNEL 32-BIT or SAP KERNEL 64-BIT components.

  2. If you do not have the SAP GUI installed on your server, copy the Librfc32.dll file to the systems32 folder (C:\Windows\system32).

  3. Register the dox42 Server SAP Module in the web.config file of your server.

    <customDataSources>
    
    <add key="SAPDataEngine.SAPDataSourceParser"
    
    value="SAP Data Source;c:\dox42Server\bin\SAPDataEngine.dll;"/>
    
    </customDataSources>
    
  4. In the web.config file on the server, navigate to the <appSettings> section and add the following entry:

    <appSettings>
    
    <add key="dox42SAPLicenseKey" value="…"/>
  5. Make sure to replace ... with your actual SAP license key.

    Tip

    In the code below, you can find the entry in line 3.

    <appSettings>
    
    <add key="LicenseFilePath" value="c:\dox42Server\License" />
    
    <add key="LicenseKey" value="…"/>
    
    <add key="dox42SAPLicenseKey" value="…"/>
    
    <add key="MailServer" value="smtp.1und1.de"/>
    
    <add key="dox42ServerMail" value="mydox42server@dox42.com"/>
    
    <add key="MailServerPassWord" value="…"/>
    
    <add key="SendErrorsToMail" value="mymonitoring@dox42.com"/>
    
    <add key="Certificate" value="c:\ dox42Server\Certs\Certificate.pfx"/>
    
    <add key="CertificatePassWord" value="…"/>
    
    <add key="CheckServiceHeader" value="true"/>
    
    <add key="UserPermissionODBCConnectionString"
    
    value="Driver={SQL Server Native Client 10.0};Server=…;Database=…;Uid=…;Pwd=…;"/>
    
    <add key="CheckUserPermissionSQL"
    
    value="SELECT COUNT(*) FROM Users where Username =
    
    '%username%' and Password = '%password%'" />
    
    <add key="ThrowExceptionOnError" value="false"/>
    
    </appSettings>
  6. Save the web.config file.

Note

For more information on the dox42 Server, see dox42 Server documentation.

Result

You have registered the dox42 Server SAP Module and can now use it with dox42 Server.