!--a11y-->
RfcCommunicationException Class 
|
[C#] public class RfcCommunicationException : SAP.Connector.RfcException |
This exception class represents an application exception when an RFC communication error occurs. This happens, for example when the .NET Connector cannot connect to an SAP system. Possible reasons are:
· Incorrect server or instance specified in the logon string
· Server is not accessible:
¡ SAP Service is not started on that server
¡ Client is offline
¡ Network problems
This exception is typically thrown at the proxy.Connection.Open(); method. It may also occur on any subsequent method invocation, for example an RFC invoke, if the connection is broken.
When this exception occurs, the RFC handle is not created or is no longer valid by the connector. Therefore there is no need to call proxy.Connection.Close();
The following example shows an RfcCommunicationException:
|
SAP.NET.Connector.RfcCommunicationException: Connect to SAP gateway failed Connect_PM GWHOST=Iwdf901, GWSERV=sapgw00, ASHOST=Iwdf901, SYSNR=00 LOCATION CPIC (TCP/IP) on local host ERROR hostname 'Iwdf901' unknown TIME Mon Apr 29 15:11:51 2002 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -2 MODULE ninti.c LINE 382 DETAIL NiPHostToAddr SYSTEM CALL gethostbyname COUNTER 15
|
RFCCommunicationException derives from RFCException and therefore implements the same properties.