From 37cb8e221efdcbd3d28f3e2d404475fdbed2d156 Mon Sep 17 00:00:00 2001 From: Erich Barnstedt Date: Mon, 23 Jan 2017 08:42:37 +0100 Subject: [PATCH] Some servers don't accept a null user identity. --- SampleApplications/Samples/NetCoreConsoleClient/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SampleApplications/Samples/NetCoreConsoleClient/Program.cs b/SampleApplications/Samples/NetCoreConsoleClient/Program.cs index aab6cf1d8e..a940b3da2e 100644 --- a/SampleApplications/Samples/NetCoreConsoleClient/Program.cs +++ b/SampleApplications/Samples/NetCoreConsoleClient/Program.cs @@ -130,7 +130,7 @@ namespace NetCoreConsoleClient var endpointConfiguration = EndpointConfiguration.Create(config); var endpoint = new ConfiguredEndpoint(selectedEndpoint.Server, endpointConfiguration); endpoint.Update(selectedEndpoint); - var session = await Session.Create(config, endpoint, true, ".Net Core OPC UA Console Client", 60000, null, null); + var session = await Session.Create(config, endpoint, true, ".Net Core OPC UA Console Client", 60000, new UserIdentity(new AnonymousIdentityToken()), null); Console.WriteLine("4 - Browse the OPC UA server namespace."); ReferenceDescriptionCollection references;