Skip to Content

.Net Connector with SAPRouterString error


I'm currently working on a connection between a .Net-Application and an SAP-System

by using the .NetConnector (NetCo). In consideration of

1) the SAP Help page about

a) Route String Entry for SAProuter

b) Route Permission Table and

c) Communication Connections of the R/3 System (

2) note no. 29684 (STFK: Route permission denied)

nevertheless I need help with this problem.

The setting:

1) My PC is connected to the SAP-LAN.

2) I would like to connect to SAP-System XYZ (not the real name, changed for this text) which is not part of

the SAP-LAN but inside SAPs (so called) DMZ. This host is

3) As used for connection via SAP-GUI the SAPRouterString I used is:


(where xxxxxx is the password).

4) Futhermore this system has SystemNo 96, SystemID XYZ.

Due to this setting I used the following configuration of .NetConnector:

AppServerHost /H/

Client 100

SystemNumber 96

Username xx

Password xxxxxx

(I'm not using SOAP)

Now I get the following error message:

SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed

Connect_PM GWHOST=/H/, GWSERV=sapgw96, SYSNR=96

LOCATION SAProuter 38.10 on 'hostname11121314'

ERROR hostname11121314: route permission denied to, 3396)

TIME Sat Jan 16 16:18:59 201


COMPONENT NI (network interface)


RC -93


So my question is if there is something else to be configured, something that is implicitly set by the SAP-GUI

(because this connnection work fine ofcourse(!))?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2010 at 07:45 AM

    Hi Johannes,

    Did you try these :

    ApplServHost :

    SAPRouterString : /H/


    Huseyin Akturk

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi everybody,

      So far I was able to find the solution myself. Like it is explaned in the paper "TCP/IP Ports Used by SAP Applications" wihich can be found at there were the corresponding port at the router (permission) table missing or false. If the SAPgui has access but .NetCo isn't able to do a RFC it is (now) obvious that the ports for RFC (33xx, where XX is the instance number) aren't setup correctly.

      In short: Just change the sap router table.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.