12/16/2020
Hi
We are running the server in a dll which is loaded by LabView, but we get the below error where it seems to try to get the assembly software version for the OpcUa application. Have you seen this before or have any idea how any idea what we could try to solve it? It works when run from visual studio pro (C#) but not when loaded from LabView.
System.NullReferenceException: Object reference not set to an instance of an object. at Opc.Ua.Utils.GetAssemblySoftwareVersion() at Opc.Ua.EndpointBase..ctor(ServerBase server) at Opc.Ua.SessionEndpoint..ctor(ServerBase server) at Opc.Ua.Server.StandardServer.GetEndpointInstance(ServerBase server) at Opc.Ua.ServerBase.CreateServiceHostEndpoint(Uri endpointUri, EndpointDescriptionCollection endpoints, EndpointConfiguration endpointConfiguration, ITransportListener listener, ICertificateValidator certificateValidator) at Opc.Ua.Bindings.TcpServiceHost.CreateServiceHost(ServerBase serverBase, IDictionary`2 hosts, ApplicationConfiguration configuration, IList`1 baseAddresses, ApplicationDescription serverDescription, List`1 securityPolicies, X509Certificate2 instanceCertificate, X509Certificate2Collection instanceCertificateChain) at Opc.Ua.Server.StandardServer.InitializeServiceHosts(ApplicationConfiguration configuration, TransportListenerBindings bindingFactory, ApplicationDescription& serverDescription, EndpointDescriptionCollection& endpoints)" at Opc.Ua.ServerBase.Start(ApplicationConfiguration configuration) at Opc.Ua.Configuration.ApplicationInstance.<Start>d__33.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at OpcBridge.OpcServer.OpcuaServerController.StartServer()---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object. at Opc.Ua.Utils.GetAssemblySoftwareVersion() at Opc.Ua.EndpointBase..ctor(ServerBase server) at Opc.Ua.SessionEndpoint..ctor(ServerBase server) at Opc.Ua.Server.StandardServer.GetEndpointInstance(ServerBase server) at Opc.Ua.ServerBase.CreateServiceHostEndpoint(Uri endpointUri, EndpointDescriptionCollection endpoints, EndpointConfiguration endpointConfiguration, ITransportListener listener, ICertificateValidator certificateValidator) at Opc.Ua.Bindings.TcpServiceHost.CreateServiceHost(ServerBase serverBase, IDictionary`2 hosts, ApplicationConfiguration configuration, IList`1 baseAddresses, ApplicationDescription serverDescription, List`1 securityPolicies, X509Certificate2 instanceCertificate, X509Certificate2Collection instanceCertificateChain) at Opc.Ua.Server.StandardServer.InitializeServiceHosts(ApplicationConfiguration configuration, TransportListenerBindings bindingFactory, ApplicationDescription& serverDescription, EndpointDescriptionCollection& endpoints) at Opc.Ua.ServerBase.Start(ApplicationConfiguration configuration) at Opc.Ua.Configuration.ApplicationInstance.<Start>d__33.MoveNext()<---
1 Guest(s)