cancel
Showing results for 
Search instead for 
Did you mean: 

apsncencryption.dll is not a valid Win32 application

shail_verma
Explorer
0 Kudos

Hi All,

Need some help around integrating a .NET application with S4 HANA when SNC is activated. Our code uses SAP NCO X64. We installed SNCCLNTCRYPT00_3-80002731.

When we are trying to make a call to SAP S4, we are getting "apsncencryption.dll is not a valid Win32 application". We realize that instead of 64 bit, the application is calling 86 bit library. Here is the message .

LoadLibrary("C:\Program Files
(x86)\SAP\SNCEncryption\x86\sapsncencryption.dll")
Error 193 = "C:\Program Files
(x86)\SAP\SNCEncryption\x86\sapsncencryption.dll is not a
valid Win32 application
."

Here is the complete log.

SAP.Middleware.Connector.RfcCommunicationException: '
LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR SncPDLInit()==SNCERR_INIT
Unable to load GSS-API DLL
named "C:\Program Files
(x86)\SAP\SNCEncryption\x86\sapsncencryption.dll"
TIME Fri Oct 20 15:08:00 2023
RELEASE 720
COMPONENT SNC (Secure Network Communication)
VERSION 6
RC -1
MODULE sncxxdl.c
LINE 468
DETAIL LoadLibrary("C:\Program Files
(x86)\SAP\SNCEncryption\x86\sapsncencryption.dll")
Error 193 = "C:\Program Files
(x86)\SAP\SNCEncryption\x86\sapsncencryption.dll is not a
valid Win32 application."
SYSTEM CALL LoadLibrary
COUNT6

Any help is appreciated.

Accepted Solutions (0)

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor
0 Kudos

The x86 libraries (86 as Intel 8086 processors family, not bits) are for 32 bit operating systems and the x64 libraries are for 64 bit operating systems.

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos

"We realize that instead of 64 bit, the application is calling 86 bit library."

There is no "86bit" library, you probably mean "32bit". And this already tells you the solution: you are using 64bit NCo and 32bit sapsncencryption.dll, and Windows doesn't allow that. Solution: either install 32bit NCo and use that, or install 64bit sapsncencryption.dll and use that.