title: The type "SAP.Middleware.Connector.RfcCommunicationException" is not defined
body: <p>I have already found this: <a href="https://stackoverflow.com/questions/24772736/get-exception-type-from-an-exception">Get Exception type from an exception</a></p>
  
  <p>The given answer is exactly what I had in my code, but the type <strong>"SAP.Middleware.Connector.RfcCommunicationException"</strong> is not defined in my SAPConnector as it seems.</p>
  
  <p>The relevant piece of code looks like this:</p>
  
  <pre><code>Public Sub RFC_Connect()
      Dim rfcFunctionStandort As IRfcFunction
      Try
          'Build RFC-Connection
          RfcDestinationManager.RegisterDestinationConfiguration(New SAP_Connect)
          rfcDestination = RfcDestinationManager.GetDestination("SomeDestination")
      Catch ex As SAP.Middleware.Connector.RfcCommunicationException
          'Connection Refused
          'Set the app to Offline-Mode
      Catch ex As Exception
          frmHauptmenue.txtEdit.ErrorLog(ex.Message)
      End Try
  End Sub
  </code></pre>
  
  <p>When running this without the first catch-statement it throws the "RfcCommunicationException" stated above.</p>
  
  <pre><code>Public Sub RFC_Connect()
      Dim rfcFunctionStandort As IRfcFunction
      Try
          'Build RFC-Connection
          RfcDestinationManager.RegisterDestinationConfiguration(New SAP_Connect)
          rfcDestination = RfcDestinationManager.GetDestination("SomeDestination")
      Catch ex As Exception
          frmHauptmenue.txtEdit.ErrorLog(ex.Message)
      End Try
  End Sub
  </code></pre>
  
  <p>The import of the connector itself is done and working:</p>
  
  <pre><code>Imports SAP.Middleware.Connector
  </code></pre>