Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Connect to message server failed

Hi There,

I'm trying to connect to SAP via the .Net connector but I keep getting the error "Connect to message server failed".

Connect_PM MSHOST=hplaptop, R3NAME=HPL, GROUP=PUBLIC

The error description "service sapmsHPL unknown". I have read many forums and their proposed solutions haven't worked thus far.

Related message server extracts of my saplogon.ini file:

[MSSysName]

Item25=HPL

[MSSrvName]

Item25=hplaptop

[MSSrvPort]

Item25=sapmsHPL

Note: MSSrvName is the server host field as per the parameter display in SMMS.

MSSrvPort is the server service field as per the parameter display in SMMS.

Related message server extracts of my sapmsg.ini file:

[Message Server]

HPL=xxx.xxx.xxx.xxx

Note: The xxx.xxx.xxx.xxx in the sapmsg.ini is the server addr field as per the parameter display in SMMS.

Related extract of my services file:

sapmsHPL 3601/tcp

Note: This port number correlates to the server port number per the parameter display in SMMS.

When I remove the MSSysName item in my saplogon.ini file i.e. leave Item25 blank as below I connect no problem.

[MSSysName]

Item25=

I suspect this means that I am not connecting via the message server but directly to the application server I've selected. I would think this is not correct as I think this then does not make use of load balancing should that be setup and I don't think one should have to remove this item from the saplogon.ini file in any case.

Are any of my parameters incorrect? How do I find that service in SAP to see if it should be "known"? I'm not a basis person so any ideas would be greatly appreciated.

Kind regards,

Grant Peterson.

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question