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

最近在学习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...
网友:http://www.cnblogs.com/GSonOVB/archive/2009/08/13/1545648.html给出了答案,但是他那个脚本,弄得有点麻烦,新手会被搞闷,我随后写了个小工具,
以方便解决这种问题。

小工具下载地址:WCFTools

posted @ 2011-01-11 17:09  小麻雀  阅读(1839)  评论(2编辑  收藏  举报