CCNET服务器异常

时间:2009-06-17 23:54:00

标签: ccnet-config

CCNET将这个例子放在网页仪表板上。是什么造成的? System.Net.Sockets.SocketException:无法建立连接,因为目标计算机主动拒绝它127.0.0.1:21234服务器堆栈跟踪:在System.Net上的System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,SocketAddress socketAddress)位于System.Runtime的System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()的System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)的.Sockets.Socket.Connect(EndPoint remoteEP).Runtime.Remoting.Channels.RemoteConnection系统中System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage消息,ITransportHeaders requestHeaders,Stream requestStream)上的System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid,Boolean openNew)中的.GetSocket()。 Sy中的Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage消息,ITransportHeaders requestHeaders,Stream requestStream,ITransportHeaders& responseHeaders,Stream& responseStream) stem.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)在[0]处重新抛出异常:在System.Runtime.Remoting.Proxies处的System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)处。 RealProxy.PrivateInvoke(MessageData&安培;在ThoughtWorks.CruiseControl.WebDashboard.Plugins.ServerReport.ServerLogServerPlugin.Execute(ICruiseRequest请求)的ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.ServerAggregatingCruiseManagerWrapper.GetServerLog(IServerSpecifier serverSpecifier)上的ThoughtWorks.CruiseControl.Remote.ICruiseManager.GetServerLog()处的msgData,Int32类型) )ThoughtWorks.CruiseControl.WebDashboard.MVC.CruiseControlProxyAction.Execute(ICruiseRequest cruiseRequest)在ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ExceptionCatchingActionProxy的ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.CruiseActionProxyAction.Execute(IRequest request)。执行(IRequest请求)

2 个答案:

答案 0 :(得分:17)

您检查过ccservice是否已启动?您可以使用telnet来检查这一点,并且,为了进行测试,我们可以使用ccnet.exe这是一个简化的控制台应用程序

答案 1 :(得分:5)

此问题看起来像另一个进程锁定CCNet正在使用的相同端口。您可以使用PortMon来跟踪锁定该特定端口的进程。您还可以在配置文件中配置CCNet以使用其他端口来避免冲突。配置应如下所示

 <system.runtime.remoting> 
    <application> 
      <channels> 
          <!-- change port here -->
          <channel ref="tcp" port="21234">              
          <serverProviders> 
            <formatter ref="binary" typeFilterLevel="Full"/> 
          </serverProviders> 
        </channel> 
      </channels> 
    </application> 
  </system.runtime.remoting>