-
Remote Connection using TCP
How to close/terminate an existing remote connection using tcp channel.
My problem is while connecting to Remote connection im getting a socket exception saying "No connection could be maid because the target machine actively refused it."
so for the next time i run my application i cannot run the application due to this exception and remote connection does not allow to login.
-
My initial guess is that you have everything wrapped in a try block and are catching the exception then exiting your method or application. What you'd want to do is ensure that you close the connection. You can accomplish this by putting your close() in a finally block. Here's some reference on try/catch/finally statements:
VB: http://msdn.microsoft.com/en-us/library/fk6t46tz.aspx
C#: http://msdn.microsoft.com/en-us/library/dszsf989.aspx
Similar Threads
-
By kundenarchana in forum .NET
Replies: 1
Last Post: 01-07-2009, 10:34 AM
-
By beachbum714 in forum .NET
Replies: 5
Last Post: 02-06-2006, 11:58 AM
-
By jggtz in forum VB Classic
Replies: 1
Last Post: 08-19-2005, 09:05 AM
-
Replies: 0
Last Post: 04-06-2005, 06:59 AM
-
By Onofre in forum VB Classic
Replies: 0
Last Post: 01-25-2001, 03:14 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks