https://+:62545/在OPC UA空服务器- c#

本文关键字:服务器 UA 62545 https OPC | 更新日期: 2023-09-27 18:07:17

我在OPC UA空服务器(c#)中有一个例外(AddressAccessDeniedException)。此异常指向URL https://+:62545/的问题。

堆栈跟踪:

System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()中

在System.ServiceModel.Channels.TransportManager

。Open (TransportChannelListener channelListener)

在System.ServiceModel.Channels.TransportManagerContainer

。Open (SelectTransportManagersCallback selectTransportManagerCallback)

在System.ServiceModel.Channels.TransportChannelListener

。OnOpen(时间间隔超时)

System.ServiceModel.Channels.HttpChannelListener的1。OnOpen(时间间隔超时)

在System.ServiceModel.Channels.CommunicationObject

。打开(时间间隔超时)

在System.ServiceModel.Dispatcher.ChannelDispatcher

。OnOpen(时间间隔超时)

在System.ServiceModel.Channels.CommunicationObject

。打开(时间间隔超时)

在System.ServiceModel.ServiceHostBase

。OnOpen(时间间隔超时)

在System.ServiceModel.Channels.CommunicationObject

。打开(时间间隔超时)

System.ServiceModel.Channels.CommunicationObject.Open()中

in op . UA . bindings . uahttpschannellistener . start () in C:'Users'MyAccount'Desktop'OPC UA'Stack'Core'Stack'Https' httplistener .cs:riga 312

在Opc.Ua.Bindings.UaHttpsChannelListener

。打开(Uri baseAddress, TransportListenerSettings settings, itranssportlistenercallback callback) in C:'Users'MyAccount'Desktop'OPC UA'Stack'Core'Stack'Https' httplistener .cs:riga 125

在Opc.Ua.ServerBase

。createhttpservicehost (IDictionary 2 hosts, ApplicationConfiguration configuration, BindingFactory bindingFactory, IList 1 baseAddresses, ApplicationDescription serverDescription, List ' 1 securityPolicies) in C:'Users'MyAccount'Desktop'OPC UA'Stack'Core'Stack'Server'ServerBase.cs:riga 1174

在Opc.Ua.Server.StandardServer

。InitializeServiceHosts(ApplicationConfiguration配置,BindingFactory BindingFactory, ApplicationDescription&serverDescription EndpointDescriptionCollection&' users ' myaccount ' desktop ' opc UA'SampleApplications'SDK'Server'Server'StandardServer.cs:riga 2718

在Opc.Ua.ServerBase

。启动(ApplicationConfiguration配置)在C:'Users'MyAccount'Desktop'OPC UA'Stack'Core'Stack'Server'ServerBase.cs:riga 247

在Opc.Ua.Configuration.ApplicationInstance

。启动(ServerBase服务器)在C:'Users'MyAccount'Desktop'OPC UA'SampleApplications'SDK'Configuration'ApplicationInstance.cs:riga 459

in Quickstarts.EmptyServer.Program.Main() in C:'Users'MyAccount'Desktop'OPC UA'SampleApplications'Workshop'Empty'Server'Program.cs:riga 78

https://+:62545/在OPC UA空服务器- c#

修复步骤:以管理员身份运行命令提示符。将URL添加到ACL

netsh HTTP add url=https://+:62545/user=my_local_user.