Consultor Eletrônico



Kbase P130121: Is it possible for a .NET Open Client to check if an AppServer is still running without making an Ap
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/12/2009
Status: Verified

GOAL:

Is it possible for a .NET Open Client to check if an AppServer is still running without making an AppServer calls?

GOAL:

How to check if the AppServer is available from a C# application without making AppServer calls?

FACT(s) (Environment):

OpenEdge 10.x
Windows

FIX:

The only way to check the availability of the AppServer from a .NET client is to make an AppServer call. If the connection to the AppServer is not valid, the .NET client needs to catch the exception.


Try
' Send a request to the AppServer to get the Customer Name
m_custNum = CInt(txtCustNum.Text)
custNum.Value = m_custNum
m_order.FindCustomerByNum(custNum, custName)
.
.
.
Catch procEx As Exception
.
.
.
End Try