PC Review


Reply
Thread Tools Rate Thread

[BUG]Activesync 3.8 + socket Error:An existing connection was forc

 
 
=?Utf-8?B?RGFuIEFyZGVsZWFu?=
Guest
Posts: n/a
 
      2nd May 2005
I saw the error on some previous posts on this newsgroup, but nobody
gave an answer, or weren't able to reproduce the error.
First of all the error happens only when the mobile device transfers
data using the connection with ActiveSync. I tried several versions of
ActiveSync, but I have the same error. The error is:
"An existing connection was forcibly closed by the remote host"
The piece of code that throws me the error is a function that sends files
on an ftp server (could use the ftp classes from OpenNetCF but also some
other ftp classes for ftp transfer). The error doesn't happen imediately but
after sending some files (= opening some sockets and closing them). In my
case the number of files is always around 12. I think it's an ActiveSync
error because if I try imediately to send the files (after I got the socket
error) I can send none and get the error right away. But if I disconnect the
cable from the PDA (=I disconnect ActiveSync) and reconnect the cable the
program is able to send another 12 files before it throws me again the error.
The error is thrown when the client tries to open a new socket (in my case
the socket where the ftp server said that is waiting for the file).
If the connection is done using a real lan layer (not emulated by
ActiveSync) the error never happens.
To reproduce the error just use the ftp classes from OpenNETCF (have to
use the Vault because they will be available in 1.3) and use a loop to send
let's say 20 files. Then use a PDA connected using the USB/serial cable and
repetly try to send the files and you shoul get the error quite easy.
The version of CF I use is 1.0 SP3.

For any further details or ideas on how to correct this problem send me an
email on:
(E-Mail Removed)


Best regards,
Dan Ardelean



 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFuIEFyZGVsZWFu?=
Guest
Posts: n/a
 
      6th May 2005
Can anyone from MS ( as I think it is an internal problem) give me an answer
to my previous question?

Thanks

"Dan Ardelean" wrote:

> I saw the error on some previous posts on this newsgroup, but nobody
> gave an answer, or weren't able to reproduce the error.
> First of all the error happens only when the mobile device transfers
> data using the connection with ActiveSync. I tried several versions of
> ActiveSync, but I have the same error. The error is:
> "An existing connection was forcibly closed by the remote host"
> The piece of code that throws me the error is a function that sends files
> on an ftp server (could use the ftp classes from OpenNetCF but also some
> other ftp classes for ftp transfer). The error doesn't happen imediately but
> after sending some files (= opening some sockets and closing them). In my
> case the number of files is always around 12. I think it's an ActiveSync
> error because if I try imediately to send the files (after I got the socket
> error) I can send none and get the error right away. But if I disconnect the
> cable from the PDA (=I disconnect ActiveSync) and reconnect the cable the
> program is able to send another 12 files before it throws me again the error.
> The error is thrown when the client tries to open a new socket (in my case
> the socket where the ftp server said that is waiting for the file).
> If the connection is done using a real lan layer (not emulated by
> ActiveSync) the error never happens.
> To reproduce the error just use the ftp classes from OpenNETCF (have to
> use the Vault because they will be available in 1.3) and use a loop to send
> let's say 20 files. Then use a PDA connected using the USB/serial cable and
> repetly try to send the files and you shoul get the error quite easy.
> The version of CF I use is 1.0 SP3.
>
> For any further details or ideas on how to correct this problem send me an
> email on:
> (E-Mail Removed)
>
>
> Best regards,
> Dan Ardelean
>
>
>

 
Reply With Quote
Reply

Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.NET application cliick-once deployment via internet - Error - Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Peri Microsoft VB .NET 2 29th Feb 2008 08:46 AM
Re: Connecting to Desktop Socket via ActiveSync Paul G. Tobey [eMVP] Microsoft Dot NET Compact Framework 2 24th Jan 2007 11:02 PM
vs2005+tcp over usb/activesync 4.2 error: existing connection forcibly closed adiel_g@hotmail.com Microsoft Dot NET Compact Framework 3 15th Dec 2006 03:02 PM
Socket via ActiveSync Joerg Janes Microsoft Dot NET Compact Framework 4 1st Dec 2003 12:11 PM
Async Socket.BeginReceive triggers SocketException 10054: "An existing connection was forcibly closed by the remote host" Peter Vrenken Microsoft Dot NET Framework 0 7th Sep 2003 07:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:43 PM.