Archived

This forum has been archived. Please start a new discussion on GitHub.

C# samples all throw exceptions on VS.Net 2005 express

I built democs via VS.net 2005 Express beta1, everything seems alright, but when i try to execute a pair of sample, e.g. Hello.
i first started server.exe, then i try to start client
a Exception was thrown:

Ice.ConnectFailedException: Connect failed ---> System.Net.Sockets.SocketException: request connect on a socket that is already connected
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at IceInternal.Network.doConnect(Socket socket, EndPoint addr, Int32 timeout)

--- End of inner exception stack trace ---
at IceInternal.ProxyFactory.checkRetryAfterException(LocalException ex, Int32
cnt)
at Ice.ObjectPrxHelperBase.__handleException(LocalException ex, Int32 cnt)
at Ice.ObjectPrxHelperBase.ice_isA(String __id, Context __context)
at Ice.ObjectPrxHelperBase.ice_isA(String __id)
at InitialPrxHelper.checkedCast(ObjectPrx b)
at Client.run(String[] args, Communicator communicator)
at Client.Main(String[] args)

why checkout throws such exceptions? i did not modify any code given by the example.

Comments

  • Looks like you already have a process running at the port that the server is trying to listen on. Run server and client with --Ice.Trace.Network=3. That will show you what's happening with connection establishment.

    Cheers,

    Michi.
  • 3x, the problem is fixed.