Skip to Content

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

SAP.Connector.RfcCommunicationException.. Please help :)

Hello All,

Am using SAP .NET Connector 2.0.1 to connect to SAP R/3 system.

Ive done the following:

1. SAPLogin1.aspx -> Added a destination object and given all the required configurations.

2. WebForm1.aspx -> Added a SAPPRoxy object and set its Connection property to SAP Login Form.


On the WebForm I have a textbox (TextBox1) using which the user would enter Material No & the result should be given in TextBox2 on a Button click (called Search).


In the SAPLogin1.aspx, the Login button contains code as:

private void Login_Click(object sender, System.EventArgs e)


// Bind data back

this.destination1.Username = this.user.Text;

this.destination1.Password = this.password.Text;



this.destination1.Client = short.Parse(this.client.Text);




this.destination1.Client = 0;


if (this.language.Text.Length > 0)


this.destination1.Language = this.language.Text;




//SAP.Connector.SAPLoginProvider.OpenSAPConnection(this, destination1.ConnectionString, this.persist.Checked);

SAP.Connector.SAPLoginProvider.OpenSAPConnection(this, this.destination1, this.persist.Checked);



catch (System.Exception exception)


this.message.Text = exception.ToString();



And in WebForm.aspx, Search button contains code like:

private void Search_Click(object sender, System.EventArgs e)

{ string str="";

SAPProxy1 proxy = new SAPProxy1();


{ proxy.Zrfc_Test_Conn(Input.Text,out str);


catch(Exception e1)

{ }

Description.Text = str;


<b>When I click on the Search button, I get an error as:

SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=, R3NAME=R01, GROUP=PUBLIC LOCATION CPIC (TCP/IP) on local host ERROR Group PUBLIC not found TIME Thu Apr 13 19:01:34 2006 RELEASE 640 COMPONENT LG VERSION 5 RC -6 MODULE lgxx.c LINE 3518 DETAIL LgIGroup COUNTER 28 at SAP.Connector.Connection.Open() at SAP.Connector.SAPLoginProvider.OpenSAPConnection(Page p, IDestination dest, Boolean persist) at navin_test_con.SAPLogin1.Login_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\navin_test_con\saplogin1.aspx.cs:line 107</b>

Please help me solve this..... please

Awaiting Reply.

Thanks and Warm Regards,


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