Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 10-08-2004
Leaf Leaf is offline
Registered User
 
 
Join Date: Jul 2004
Location: Shang Hai ,China
Posts: 2
Angry 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(LocalExc eption 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.

Last edited by Leaf : 10-09-2004 at 12:26 AM.
Reply With Quote
  #2 (permalink)  
Old 10-09-2004
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 912
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.
Reply With Quote
  #3 (permalink)  
Old 10-09-2004
Leaf Leaf is offline
Registered User
 
 
Join Date: Jul 2004
Location: Shang Hai ,China
Posts: 2
3x, the problem is fixed.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asynchronous Method Invocation Samples pradeep Help Center 1 11-23-2006 05:55 AM
Is there a express way to compile the source with Eclipse in windows? OrNot Help Center 6 10-28-2006 07:27 AM
Ice 3.0.1 & Visual Studio 2005 (Express edition) albertods Help Center 6 05-19-2006 10:54 AM
Why does Evictor throw the following exception? kent Help Center 2 01-06-2006 06:01 PM
what can Monitor::wait() throw? andhow Help Center 4 02-21-2005 09:26 AM


All times are GMT -4. The time now is 06:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.