cancel
Showing results for 
Search instead for 
Did you mean: 

.NET connector gives error while connecting to the SAP system

Former Member
0 Kudos

Hi All,

We are trying to connect to the SAP system via .NET connector.

My machine and the SAP system are<b> not in the same domain</b>.

When I enter the ip address as the hostname the error I get is "Name or password incorrect"

When I enter the hostname i get the following error

-


-


Test Connect failed. Please correct connection settings. Error was: Connect to SAP gateway failed

Connect_PM GWHOST=idesecc, GWSERV=sapgw00, ASHOST=idesecc, SYSNR=00

LOCATION CPIC (TCP/IP) on local host

ERROR hostname 'idesecc' unknown

TIME Wed Apr 04 16:53:55 2007

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -2

MODULE ninti.c

LINE 329

DETAIL NiPGetHostByName2: hostname 'idesecc' not found

SYSTEM CALL gethostbyname_r

COUNTER 82

-


OK

-


the sapgw00 service exists in the services file.

The hostname is correctly entered in the hosts file.

The sapmsg.ini file also contains the entries.

Kindly help ...

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi rohit,

how are you doing ?

>>My machine and the SAP system are not in the same domain.

>> When I enter the ip address as the hostname the error I get is "Name or password incorrect"

keep the IP address, as it is simpler to communicate with it in cross domain apps,

if u're getting the "Name or password incorrect" error, you have crossed the hurdle of reaching the SAP system, now all that remains is supplying all the necessary credentials

please ensure your connection string has at least the following parameters :

"CLIENT=420 USER=AMIT PASSWD=CHAWATHE LANG=EN ASHOST=10.8.1.63 SYSNR=0"

Please review the thread for associated problems :

with respect,

amit

Former Member
0 Kudos

Hi All,

Thanks for the answers.

Uninstalling the .NET connector and reinstalling the connector worked...

<b>Regards,

Rohit S. Ghan</b>

Former Member
0 Kudos

Hi Rohit,

are you sending password in capiptal letters?

Plz check. I think Password should be sent in Capitals.

Atul.

Former Member
0 Kudos

Hi Atul,

On behalf of Rohit, we are not entering the password in capital letters.

Also while entering the host as 'idesecc.india.tcs.com' it is giving us error as follows :

-


-


<b>Test Connect failed. Please correct connection settings. Error was: Connect to SAP gateway failed

Connect_PM GWHOST=idesecc, GWSERV=sapgw00, ASHOST=idesecc, SYSNR=00

LOCATION CPIC (TCP/IP) on local host

ERROR hostname 'idesecc' unknown

TIME Wed Apr 04 16:53:55 2007

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -2

MODULE ninti.c

LINE 329

DETAIL NiPGetHostByName2: hostname 'idesecc' not found

SYSTEM CALL gethostbyname_r

COUNTER 82</b>

Thanks and Regards,

Ravi Shah