Archived

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

C# helloworld example's problem

Hi!
I'm a beginer of ICE. When i study helloword example of C# in windows2003, server.exe is ok, but when client is run, raise some
exceptions, list below:

Ice.ConnectFailedException: Connect failed ---> System.Net.Sockets.SocketException: A connect request was made on an already connected socket
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 PrinterPrxHelper.checkedCast(ObjectPrx b)
at Client.Main(String[] args)

why? How can i do?

i already pacthed icecs.dll.

Comments

  • Are you sure that you patched the source using the patch here?

    Also, are you sure that you have removed all old copies of icecs.dll from your system? In particular, if you installed the previous copy of icecs.dll in the GAC, you will have to replace it.

    It looks like your code is picking up the older version of icecs.dll and not getting the benefit of the patch.

    Cheers,

    Michi.
  • Thank you very much. i forgot to update GAC.