问题描述:
本地启动kepserver,作为OPC-DA数据源。在本地NeuOPC 64位客户端选择配置后,连通性测试成功,但启动OPC-UA服务报错
操作系统:
Windows 10, 64位
报错内容:
系统日志:
报错日志:
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。
************** 异常文本 **************
System.AggregateException: One or more errors occurred. (Failed to establish tcp listener sockets for Ipv4 and IPv6.)
---> Opc.Ua.ServiceResultException: Failed to establish tcp listener sockets for Ipv4 and IPv6.
at Opc.Ua.Bindings.TcpTransportListener.Start()
at Opc.Ua.Bindings.TcpTransportListener.Open(Uri baseAddress, TransportListenerSettings settings, ITransportListenerCallback callback)
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(ServerBase server)
--- 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 neuserver.UaServer.Start() in C:\Work\Neuopc\neuserver\UaServer.cs:line 143
at neuopc.Server.Start(String uri, String user, String password, ValueWrite write) in C:\Work\Neuopc\neuopc\Server.cs:line 51
at neuopc.MainForm.SwitchButton_Click(Object sender, EventArgs e) in C:\Work\Neuopc\neuopc\MainForm.cs:line 276
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
************** 已加载的程序集 **************
System.Private.CoreLib
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Private.CoreLib.dll
----------------------------------------
neuopc
程序集版本:1.0.0.0
Win32 版本:1.0.0.0
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/neuopc.dll
----------------------------------------
System.Runtime
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Runtime.dll
----------------------------------------
System.Windows.Forms
程序集版本:6.0.2.0
Win32 版本:6.0.3624.51513
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.36/System.Windows.Forms.dll
----------------------------------------
System.Windows.Forms.Primitives
程序集版本:6.0.2.0
Win32 版本:6.0.3624.51513
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.36/System.Windows.Forms.Primitives.dll
----------------------------------------
System.Threading.Channels
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Threading.Channels.dll
----------------------------------------
Serilog
程序集版本:2.0.0.0
Win32 版本:3.0.1.0
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/Serilog.dll
----------------------------------------
Serilog.Sinks.File
程序集版本:5.0.0.0
Win32 版本:5.0.0.0
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/Serilog.Sinks.File.dll
----------------------------------------
System.ComponentModel.Primitives
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.ComponentModel.Primitives.dll
----------------------------------------
System.Runtime.InteropServices
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Runtime.InteropServices.dll
----------------------------------------
System.Drawing.Primitives
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Drawing.Primitives.dll
----------------------------------------
System.Collections.Specialized
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Collections.Specialized.dll
----------------------------------------
System.Drawing.Common
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.36/System.Drawing.Common.dll
----------------------------------------
System.Diagnostics.TraceSource
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Diagnostics.TraceSource.dll
----------------------------------------
System.Collections
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Collections.dll
----------------------------------------
System.Threading.ThreadPool
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Threading.ThreadPool.dll
----------------------------------------
System.Linq
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Linq.dll
----------------------------------------
System.Text.RegularExpressions
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Text.RegularExpressions.dll
----------------------------------------
System.IO.FileSystem
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.IO.FileSystem.dll
----------------------------------------
System.Memory
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Memory.dll
----------------------------------------
System.Reflection.Emit.ILGeneration
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Reflection.Emit.ILGeneration.dll
----------------------------------------
System.Reflection.Emit.Lightweight
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Reflection.Emit.Lightweight.dll
----------------------------------------
System.Threading
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Threading.dll
----------------------------------------
System.Reflection.Primitives
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Reflection.Primitives.dll
----------------------------------------
System.Private.Uri
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Private.Uri.dll
----------------------------------------
Microsoft.Win32.Primitives
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/Microsoft.Win32.Primitives.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Threading.Thread
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Threading.Thread.dll
----------------------------------------
Accessibility
程序集版本:4.0.0.0
Win32 版本:6.0.3624.51513
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.36/Accessibility.dll
----------------------------------------
System.ComponentModel.TypeConverter
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.ComponentModel.TypeConverter.dll
----------------------------------------
Microsoft.Win32.SystemEvents
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.36/Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Collections.Concurrent
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Collections.Concurrent.dll
----------------------------------------
System.ComponentModel
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.ComponentModel.dll
----------------------------------------
System.Numerics.Vectors
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Numerics.Vectors.dll
----------------------------------------
System.Diagnostics.FileVersionInfo
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Diagnostics.FileVersionInfo.dll
----------------------------------------
System.Collections.NonGeneric
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Collections.NonGeneric.dll
----------------------------------------
System.Text.Encoding.Extensions
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Text.Encoding.Extensions.dll
----------------------------------------
System.Text.Json
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Text.Json.dll
----------------------------------------
System.Text.Encodings.Web
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Text.Encodings.Web.dll
----------------------------------------
System.Runtime.Intrinsics
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Runtime.Intrinsics.dll
----------------------------------------
System.Runtime.CompilerServices.Unsafe
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Runtime.CompilerServices.Unsafe.dll
----------------------------------------
neuclient
程序集版本:1.0.0.0
Win32 版本:1.0.0.0
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/neuclient.dll
----------------------------------------
OpcNetApi
程序集版本:2.1.0.0
Win32 版本:2.1.109.57
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/OpcNetApi.dll
----------------------------------------
netstandard
程序集版本:2.1.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/netstandard.dll
----------------------------------------
System.Net.Primitives
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Net.Primitives.dll
----------------------------------------
OpcNetApi.Com
程序集版本:2.1.0.0
Win32 版本:2.1.109.57
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/OpcNetApi.Com.dll
----------------------------------------
System.Net.WebProxy
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Net.WebProxy.dll
----------------------------------------
OpcComRcw
程序集版本:2.0.0.0
Win32 版本:2.1.109.57
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/OpcComRcw.dll
----------------------------------------
neulib
程序集版本:1.0.0.0
Win32 版本:1.0.0.0
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/neulib.dll
----------------------------------------
neuserver
程序集版本:1.0.0.0
Win32 版本:1.0.0.0
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/neuserver.dll
----------------------------------------
Opc.Ua.Core
程序集版本:1.4.372.0
Win32 版本:1.4.372.56
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/Opc.Ua.Core.dll
----------------------------------------
System.Net.NameResolution
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Net.NameResolution.dll
----------------------------------------
Opc.Ua.Configuration
程序集版本:1.4.372.0
Win32 版本:1.4.372.56
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/Opc.Ua.Configuration.dll
----------------------------------------
Opc.Ua.Server
程序集版本:1.4.372.0
Win32 版本:1.4.372.56
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/Opc.Ua.Server.dll
----------------------------------------
System.Security.Cryptography.X509Certificates
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Security.Cryptography.X509Certificates.dll
----------------------------------------
System.Security.Cryptography.Primitives
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Security.Cryptography.Primitives.dll
----------------------------------------
System.Diagnostics.Tracing
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Diagnostics.Tracing.dll
----------------------------------------
Microsoft.Extensions.Logging.Abstractions
程序集版本:7.0.0.0
Win32 版本:7.0.723.27404
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/Microsoft.Extensions.Logging.Abstractions.dll
----------------------------------------
Opc.Ua.Security.Certificates
程序集版本:1.4.372.0
Win32 版本:1.4.372.56
代码库:file:///F:/cdlink-edge/lib/neuopc/neuopc/Release/net6.0-windows/Opc.Ua.Security.Certificates.dll
----------------------------------------
System.Security.Cryptography.Algorithms
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Security.Cryptography.Algorithms.dll
----------------------------------------
System.Security.Cryptography.Encoding
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Security.Cryptography.Encoding.dll
----------------------------------------
System.Security.Cryptography.Cng
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Security.Cryptography.Cng.dll
----------------------------------------
System.Security.Cryptography.Csp
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Security.Cryptography.Csp.dll
----------------------------------------
System.ObjectModel
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.ObjectModel.dll
----------------------------------------
System.Xml.ReaderWriter
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Xml.ReaderWriter.dll
----------------------------------------
System.Private.Xml
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Private.Xml.dll
----------------------------------------
System.Runtime.Serialization.Xml
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Runtime.Serialization.Xml.dll
----------------------------------------
System.Private.DataContractSerialization
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Private.DataContractSerialization.dll
----------------------------------------
System.Formats.Asn1
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Formats.Asn1.dll
----------------------------------------
System.Runtime.Numerics
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Runtime.Numerics.dll
----------------------------------------
System.Net.Sockets
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Net.Sockets.dll
----------------------------------------
System.Threading.Overlapped
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Threading.Overlapped.dll
----------------------------------------
System.Runtime.Loader
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Runtime.Loader.dll
----------------------------------------
System.Windows.Forms.resources
程序集版本:6.0.2.0
Win32 版本:6.0.3624.51513
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.36/zh-Hans/System.Windows.Forms.resources.dll
----------------------------------------
System.Diagnostics.StackTrace
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Diagnostics.StackTrace.dll
----------------------------------------
System.Reflection.Metadata
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
程序集版本:6.0.0.0
Win32 版本:6.0.3624.51421
代码库:file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Collections.Immutable.dll
----------------------------------------
************** JIT 调试 **************