WCF分布式开发常见错误(11):There is already a listener on IP endpoint ,IP 终结点 已经存在侦听器,
2009-05-16 14:19
671 查看
Posted on 2009-05-16 14:51 Frank Xu Lei 阅读(538) 评论(8) 编辑 收藏 网摘 所属分类: WCF分布式开发常见错误
进行WCF服务终结点配置的过程中,当你配置服务终结点端口,启动服务程序的时候会遇到如下错误,服务无法启动,1.错误信息如下:
IP终结点(端口) 0.0.0.0:8002已经存在一个侦听器,请确保程序中没有多次使用一个终结点,或别的程序没有监听此终结点(端口)
There is already a listener on IP endpoint 0.0.0.0:8002. Make sure that you are not trying to use this endpoint multiple times in your application and that there are no other applications listening on this endpoint.
2.原因:此端口已经被使用,即已经有程序在使用一个相同的端口所致。必须我们配置两个服务终结点使用一个终结点端口
<endpoint
address="http://localhost:8002/WCFService"
binding="wsHttpBinding"
contract="WCFService.IWCFService">
</endpoint>
<endpoint
address="net.tcp://localhost:8002/WCFService"
binding="netTcpBinding" bindingName="netTcpBinding"
contract="WCFService.IWCFService">
</endpoint>
运行服务程序就会出现错误。
3.解决办法:
(1)检查机器的端口,确保此端口不是系统服务端口,或者没被其他程序使用。
(2)检查服务终结点配置信息,确保两个不同的服务使用不同的终结点端口
此例中的修改代码改为端口8001即可:
<endpoint
address="http://localhost:8001/WCFService"
binding="wsHttpBinding"
contract="WCFService.IWCFService">
</endpoint>
【老徐的博客】
【作者】:Frank Xu Lei
【地址】:http://www.cnblogs.com/frank_xl/archive/2009/05/16/1458292.html
进行WCF服务终结点配置的过程中,当你配置服务终结点端口,启动服务程序的时候会遇到如下错误,服务无法启动,1.错误信息如下:
IP终结点(端口) 0.0.0.0:8002已经存在一个侦听器,请确保程序中没有多次使用一个终结点,或别的程序没有监听此终结点(端口)
There is already a listener on IP endpoint 0.0.0.0:8002. Make sure that you are not trying to use this endpoint multiple times in your application and that there are no other applications listening on this endpoint.
2.原因:此端口已经被使用,即已经有程序在使用一个相同的端口所致。必须我们配置两个服务终结点使用一个终结点端口
<endpoint
address="http://localhost:8002/WCFService"
binding="wsHttpBinding"
contract="WCFService.IWCFService">
</endpoint>
<endpoint
address="net.tcp://localhost:8002/WCFService"
binding="netTcpBinding" bindingName="netTcpBinding"
contract="WCFService.IWCFService">
</endpoint>
运行服务程序就会出现错误。
3.解决办法:
(1)检查机器的端口,确保此端口不是系统服务端口,或者没被其他程序使用。
(2)检查服务终结点配置信息,确保两个不同的服务使用不同的终结点端口
此例中的修改代码改为端口8001即可:
<endpoint
address="http://localhost:8001/WCFService"
binding="wsHttpBinding"
contract="WCFService.IWCFService">
</endpoint>
【老徐的博客】
【作者】:Frank Xu Lei
【地址】:http://www.cnblogs.com/frank_xl/archive/2009/05/16/1458292.html
相关文章推荐
- WCF分布式开发常见错误(11):There is already a listener on IP endpoint ,IP 终结点 已经存在侦听器
- WCF开发常见问题:“There is already a listener on IP endpoint 0.0.0.0:4503”
- WCF开发常见问题:“There is already a listener on IP endpoint 0.0.0.0:4503”
- Dynamics CRM2013 Server2012R2下IFD部署遇到There is already a listener on IP endpoint的解决方法
- Dynamics CRM2013 Server2012R2下IFD部署遇到There is already a listener on IP endpoint的解决方法
- Dynamics CRM2013 Server2012R2下IFD部署遇到There is already a listener on IP endpoint的解决方法
- Dynamics CRM2013 Server2012R2下IFD部署遇到There is already a listener on IP endpoint的解决方法
- WCF分布式开发常见错误解决(9):无终结点监听,There was no endpoint listening at
- WCF分布式开发常见错误解决(9):无终结点监听,There was no endpoint listening at
- WCF分布式开发常见错误(16):The Transaction has aborted,事务已经被中断
- WCF分布式开发常见错误(21):unable to open its IChannelListener.分发器未能打开侦听器
- WCF分布式开发常见错误(14):无效的操作异常,At least one operation on the ...
- WCF分布式开发常见错误(21):unable to open its IChannelListener.分发器未能打开侦听器
- WCF分布式开发常见错误(19):There was an error opening the queue打开消息队列出错
- WCF分布式开发常见错误(16):The Transaction has aborted,事务已经被中断
- WCF分布式开发常见错误(25):The certificate 'CN=WCFHTTPS' must have a private key that is capable of key exchange
- WCF分布式开发常见错误(19):There was an error opening the queue打开消息队列出错
- Windows Mobile开发启动模拟器时,得到错误 0x80070070: There is not enough space on the disk
- Mac系统开发常见问题-IntelliJIDEA-TOMCAT-Address localhost:80 is already in use
- There is already an open DataReader associated with this Command which must be closed first的错误解决办法