首页 新闻 赞助 找找看

wcf最大入站和出站连接数设置

0
悬赏园豆:100 [已关闭问题] 关闭于 2009-06-16 17:34

走过路过的朋友看看了~~~

每次我只要把 maxConnections="10"这个值设置为比10更大的值的时候,就会抛出如下异常

==============================================

IP 终结点 0.0.0.0:9990 上已有侦听器。请确保未在应用程序中多次尝试使用该终结点,并确保没有其他应用程序在侦听该终结点。

堆栈如下:

==============================================

未处理 System.ServiceModel.AddressAlreadyInUseException
  Message="IP 终结点 0.0.0.0:9990 上已有侦听器。请确保未在应用程序中多次尝试使用该终结点,并确保没有其他应用程序在侦听该终结点。"
  Source="System.ServiceModel"
  StackTrace:
       在 System.ServiceModel.Channels.SocketConnectionListener.Listen()
       在 System.ServiceModel.Channels.BufferedConnectionListener.Listen()
       在 System.ServiceModel.Channels.ConnectionAcceptor.StartAccepting()
       在 System.ServiceModel.Channels.ConnectionDemuxer.StartDemuxing(OnViaDelegate viaDelegate)
       在 System.ServiceModel.Channels.ExclusiveTcpTransportManager.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.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout)
       在 System.ServiceModel.Channels.TcpChannelListener`2.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()
       在 Hosting.Program.Main(String[] args) 位置 G:\LumiSoft\Hosting\Program.cs:行号 31
       在 System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       在 System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.Net.Sockets.SocketException
       Message="通常每个套接字地址(协议/网络地址/端口)只允许使用一次。"
       Source="System"
       ErrorCode=10048
       NativeErrorCode=10048
       StackTrace:
            在 System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
            在 System.Net.Sockets.Socket.Bind(EndPoint localEP)
            在 System.ServiceModel.Channels.SocketConnectionListener.Listen()
       InnerException:

Ron.Liang的主页 Ron.Liang | 菜鸟二级 | 园豆:271
提问于:2009-06-16 17:06
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册