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

G

Guest

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 address removed)


Best regards,
Dan Ardelean
 
G

Guest

Can anyone from MS ( as I think it is an internal problem) give me an answer
to my previous question?

Thanks
 

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