Skip to Content
avatar image
Former Member

SAP Router configuration issue (sapcrypto.dll not loaded)

Dear All

i am facing problem during the configuration of SAProuter on windows server 2003 X86_64 (64)bit operating system.

i did all the basic steps properly (twice on two different machines with same config) like

1.Downloading and installing the proper software(router/SAPcryptoLib X_64bit)

2.Defining the environment variable for SECU_DIR and SNC_LIB for the user.

3.Proper execution of sapgenpse commands for cert/srcert certificates

4.Proper distinguish name.

How ever when i am running the command to start SAProuter i am facing the following error (dev_rout).

*** ERROR => DlLoadLib: LoadLibrary(C:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll) Error 193 [dlnt.c 237]

*** ERROR => SncPDLInit(): DlLoadLib("C:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll")=DLENOACCESS

[sncxxdl.0340]*** ERROR => SncPDLInit()==SNCERR_INIT, Adapter (#0) C:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll not loaded

[sncxxdl.0604]<<- SncInit()==SNCERR_INIT

sec_avail = "false"

*** ERROR => NiSncInit: SncInit failed (rc=-1) [nisnc.c 647]

*** ERROR => main: NiSncInit failed (rc=-17) [nirout.cpp 1219]

Please Help

Regards

M Rafique Ali

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 01, 2013 at 07:52 PM

    Dear All,

    thanks for all your concern,

    in spite of doing the all the well known methods and suggestions to configure router still facing the issue,

    but.....

    the issue was solved by copying 32 bit sapcrypto.dll into the SNC_LIB directory.

    now the SAP router is working fine.

    i am still in a confusion how a X86_32 bit dll was done the trick for X86_64 bit machine.

    i think its not a perfect solution,but never the less it is working for me.

    Thanks and Regards

    M Rafique

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 28, 2013 at 03:27 AM

    Hi Rafique,

    From the error message it is clear that the router cannot load/find the library. You may have either installed a different version of the library or the library path is wrong. Please make sure you reboot your system after changing the environment variable.

    From the dev_rout file you have attached, it seems that the router is expecting a 32 bit version of the library. "PC with Windows NT (mt,ascii,SAP_UC/size_t/void* = 8/32/32)"

    Please also check :

    http://scn.sap.com/thread/1074384

    It looks like setting the SECUDIR to saprouter\nt-x86_64 may solve the issue.

    Regards,

    Shahab

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rafiq,

      Few things to check,

      1. Check the system information of your server.(nt or amd)(32 or 64)

      Then download the correct sapcryptolib.sar file.

      Maintain the below two parameters in environment variable

      SECUDIR = <path of Saprouter folder>

      SNC_LIB = <path of Saprouter>/sapcrypto.dll>

      With Regards

      Ashutosh chaturvedi

  • avatar image
    Former Member
    Feb 27, 2013 at 11:27 PM

    Hi Rafique,

    Could you please check the followings:

    - have you imported the generated certificate to SAProuter.

    - Check if the files and folders have the right permission for the user

    - Check if the Cryptolibrary is installed correctly

    - Check your environment variables (specially SN_LIB) it may be set incorrectly. Check the path. see also: http://scn.sap.com/thread/1490167

    Regards,

    Shahab

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Please copy the contents in the folder C:\usr\sap\saprouter\nt-x86_64\ to C:\usr\sap\saprouter\

      Restart the SAPROUTER and check whether it works..

      Set the following environment variables

      SECUDIR = <path of Saprouter folder>

      SNC_LIB = <path of Saprouter>/sapcrypto.dll>

      Thanks and Regards,

      Vimal

  • Feb 28, 2013 at 11:29 PM

    Hello

    Follow these links and you will be able to set it up properly.

    https://service.sap.com/saprouter

    http://service.sap.com/saprouter-sncdoc

    http://service.sap.com/saprouter-sncadd

    Cheers

    RB

    Add comment
    10|10000 characters needed characters exceeded