您的位置:首页 > 理论基础 > 计算机网络

解决win7下发布的WCF服务出现的Http不能注册的问题,附上我的小工具

2011-01-11 17:09 585 查看
最近在学习WCF编程,开始就被一连串的小问题给挡住了,在我认真查阅资料后,看了好多网友的方法,找到解决方法之后,
我写了一个小工具方便刚学习WCF的朋友,遇到此类问题,可以很快得到解决,而不是花大量时间去到处寻找答案。
先看问题描述:
无法启动服务。System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URLhttp://+:8080/。进程不具有此命名空间的访问权限(有关详细信息,请参阅http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAll()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.HttpChannelListener.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.ServiceHo...
网友:/article/5172226.html给出了答案,但是他那个脚本,弄得有点麻烦,新手会被搞闷,我随后写了个小工具,
以方便解决这种问题。

小工具下载地址:WCFTools
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐