title: Problems connecting to SAP with sapnco
body: <p>I am trying to connect to SAP with a little c# program using SAPNCO x64 v. 3.0.2 with this code:</p>
  
  <pre><code>public partial class Connection
  {
      public class Configuration : IDestinationConfiguration
      {
          public event RfcDestinationManager.ConfigurationChangeHandler ConfigurationChanged;
  
          public bool ChangeEventsSupported()
          {
              return false;
          }
  
          public RfcConfigParameters GetParameters(string destinationName)
          {
              var Parameters = new RfcConfigParameters();
              if (destinationName == "TEST")
              {
                  Parameters.Add(RfcConfigParameters.AppServerHost, "...");
                  Parameters.Add(RfcConfigParameters.SystemID, "...");
                  Parameters.Add(RfcConfigParameters.SystemNumber, "01");
                  Parameters.Add(RfcConfigParameters.LogonGroup, "COMMON");
                  Parameters.Add(RfcConfigParameters.User, "...");
                  Parameters.Add(RfcConfigParameters.Password, "...");
                  Parameters.Add(RfcConfigParameters.Client, "...");
                  Parameters.Add(RfcConfigParameters.Language, "EN");
                  Parameters.Add(RfcConfigParameters.PoolSize, "5");
                  Parameters.Add(RfcConfigParameters.MaxPoolSize, "10");
              }
              else
                  throw new ArgumentException();
  
              return Parameters;
          }
      }
  
      public void ConnectionTest()
      {
          RfcDestinationManager.RegisterDestinationConfiguration(new Configuration());
          RfcDestination destination = RfcDestinationManager.GetDestination("TEST");
          destination.Ping();
      }
  }
  </code></pre>
  
  <p>When I call <code>Ping()</code> I get this error:</p>
  
  <p>LOCATION   SAP-Gateway on host ... / ...</p>
  
  <p>ERROR       Gateway not connected to local R/3</p>
  
  <p>TIME        Mon Jan 29 19:43:34 2018</p>
  
  <p>RELEASE     722</p>
  
  <p>COMPONENT   SAP-Gateway</p>
  
  <p>VERSION     2</p>
  
  <p>RC          726</p>
  
  <p>MODULE      gwr3cpic.c</p>
  
  <p>LINE        5831</p>
  
  <p>COUNTER     2 </p>
  
  <p>I can figure it out. Any would be appreciated. Thanx. </p>
  
  <p>NB: I have replaced sensible data with dots, of course.</p>
  
  <p>M.</p>