Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

OPCLabs version 5.35: BrowseServers() does not throw exception - by: sachin.s.mehta@gmail.com

$
0
0
Hello Support,

Since 2015 we are using QuickOPC5.35 with WCF based C# tool to browse and configure OPC DA server. Recently we have received a complained about our customer that application does not work on windows 10 machine.

After further investigation and with the help of below program I figure it out that BrowseServers() method from EasyDAClient failed and does not throw any exception. Windows event viewer always raised 'Application Error' (see attachment)

static void Main(string[] args)
{
var opcClient = new EasyDAClient();
ServerElementCollection serverElements;

try
{
Console.WriteLine("Trying to browse..");
serverElements = opcClient.BrowseServers(String.Empty);
}
catch (Exception e)
{
Console.WriteLine("*** Failure: {0}", e.GetBaseException().Message);
return;
}

foreach (ServerElement serverElement in serverElements)
{
Console.WriteLine(serverElement.Description.ToString());
}

Could you please help me how to overcome this situation?

Thanks in advance.

With regards,
Sachin Mehta

Viewing all articles
Browse latest Browse all 1794

Trending Articles