专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > DotNet Exception

未处理的异常: System.ServiceModel.AddressAlreadyInUseException: HTTP 无法注册 U -WCF出错。

发布时间:2011-06-26 20:28:38 文章来源:www.iduyao.cn 采编人员:星星草

未处理的异常:  System.ServiceModel.AddressAlreadyInUseException: HTTP 无法注册 U
RL http://+:8000/。另一应用程序已使用 HTTP.SYS 注册了该 URL。 ---> System.Net.Ht
tpListenerException: 在前缀“http://+:8000/”上侦听失败,因为它与计算机上的现有
注册冲突。
  在 System.Net.HttpListener.AddAll()
  在 System.Net.HttpListener.Start()
  在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
  --- 内部异常堆栈跟踪的结尾 ---
  在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
  在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListene
r channelListener)
  在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTranspor
tManagersCallback selectTransportManagerCallback)
  在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan time
out)
  在 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.ServiceHostBase.OnOpen(TimeSpan timeout)
  在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
  在 System.ServiceModel.Channels.CommunicationObject.Open()
  在 Host.Program.Main(String[] args) 位置 D:\教程\WebCast\WCF\构建WCF面向服务
的应用程序系列课程(1):WCF概要\Code\WebCast20070924_Demo\HelloIndigo\Host\Progra
m.cs:行号 17

未处理的异常:  System.ServiceModel.CommunicationObjectFaultedException: 通信对象
System.ServiceModel.ServiceHost 无法用于通信,因为其处于“出错”状态。
  在 System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)
  在 System.ServiceModel.Channels.CommunicationObject.Close()
  在 System.ServiceModel.ServiceHostBase.System.IDisposable.Dispose()
  在 Host.Program.Main(String[] args) 位置 D:\教程\WebCast\WCF\构建WCF面向服务
的应用程序系列课程(1):WCF概要\Code\WebCast20070924_Demo\HelloIndigo\Host\Progra
m.cs:行号 19

------解决方法--------------------------------------------------------


恩, 8000端口被注册了,可能是 其他程序所为
------解决方法--------------------------------------------------------
8000端口被占用了。。
要不换个端口试试
------解决方法--------------------------------------------------------
http://blog.csdn.net/EricBai/archive/2008/11/01/3202204.aspx

------解决方法--------------------------------------------------------     

友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: