An existing connection was forcibly closed by the remote host

  • Thread starter =?iso-8859-1?Q?Vicente_Garc=EDa?=
  • Start date
?

=?iso-8859-1?Q?Vicente_Garc=EDa?=

Hello!! sorry for my english,

I've made an application that ran correctly for 3 days, It's a service, however in the third day the application failed because of "An existing connection was forcibly closed by the remote host" exception, and then the CPU usage was 95 %. I don't know why it happens :( The service is always runs and other application works with the service using sockets, the exception occur when the service tried to send a message with the socket...but three days after!! because the first days works perfectly!

May any one help me, please??
Thanks in advance.
Vicente.
 
A

aaron.kempf

yeah I reccomend using VB6 and classic ADO

VB 2005 isn't production ready; neither is 2002 or 2003

-Aaron
 
B

BK

Disregard Aaron's post, he meant to say he's not ready for production
programming. In the mean time, for a serious reply, there is a
setting in the SQL Configuration Manager, on TCP/IP Protocol (native):

KeepAlive and
KeepAliveInterval

that should help you. Set them zero, eg no keepalive checking.
 
A

aaron.kempf

ROFL

where'd you come up with that (guess) from?

I mean seriously; I show TCP/IP as 'disabled by default' and 'Shared
Memory' is the default



-Aaron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top