【EXE报错】win10运行C#程序保存报错:HTTP 无法注册URL ,进程不具有此命名空间的访问权限

在win10系统运行C#程序出现以下报错

异常信息

[1]异常信息:HTTP 无法注册 URL http://+:13000/Core/Real/HandheldService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。
[2]调用方法:OnOpen
[3]堆栈信息: 在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 Sabert.Rfid.Core.Runtime.StartUp.Channel() 位置 e:SabertsrcCoreSabert.Rfid.CoreSystemEngine.cs:行号 702
在 Sabert.Rfid.Core.Runtime.SystemEngine.StartUpSystem(Boolean isconsole) 位置 e:SabertsrcCoreSabert.Rfid.CoreSystemEngine.cs:行号 38
在 Sabert.Rfid.Core.Program.Main(String[] args) 位置 e:SabertsrcCoreSabert.Rfid.CoreProgram.cs:行号 16
[4]内部异常:拒绝访问。
[5]备注 :系统发生严重异常错误!

解决办法

以管理员身份运行程序。

原文地址:https://www.cnblogs.com/Sukie-s-home/p/8377493.html