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

URL : problem in run URL path after istancing - by: CHRDEI

$
0
0
Good morning,
in my application I properly run a "URL" path with success with this code:

Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri) { UseShellExecute = true });

After creating a connection with OPCUA server by istancing the EasyClient,
the same code above stops to work and closes suddenly the application (WPF with NET.framework 4.8).
It happens even after destroying all the OPCUA references.

Please, be so kind to inform me about some ideas.
Tks a lot and best regards

This is the code I use to istance the OPCUA server

private EasyUAClient _Client = null;
private UADiscoveryElementCollection _EndPoint = null;
private UAEndpointDescriptor _endPointDescriptor = null;

if (_Client == null)
_Client = new EasyUAClient();

string uriAdress = (@"opc.tcp://" + _cfgManager.ApplSettings.ServerURI + ":" + _cfgManager.ApplSettings.ServerPort.ToString()).Trim();

_endPointDescriptor = uriAdress;

_EndPoint = _Client.DiscoverLocalEndpoints(uriAdress);

Viewing all articles
Browse latest Browse all 1794

Trending Articles