Hi, I’m new in developing windows application (using C#.NET) with genesys products. I was able to connect to config server and t-server, but the problem is how can I catch the login error when user enter wrong login details and prompt a message with the stated error? Here’s my code:
confServerProtocol = new ConfServerProtocol(new Endpoint(new Uri(“tcp://” + Host + “:” + Port)));
confServerProtocol.UserName = UserName;
confServerProtocol.UserPassword = Password;
confServerProtocol.ClientName = Application;
confServerProtocol.ClientApplicationType = (int)CfgAppType.CFGAgentDesktop;
try
{
confServerProtocol.Open();
}
catch (ProtocolException ex)
{
//Catch and display error
}
Is it correct to use ProtocolException to catch the error? How can I related it with CfgErrorType? I’ve gone through the developer guide but I still have no idea how to implement.