through ActiveSync.
"Bernard Cheah [MVP]" wrote:
> Ya. it sux when the same code doesn't work at different device :)
>
> 425 - Cannot open data connection.
> 10060 - A connection attempt failed because the connected party did not
> properly respond after a period of time, or established connection failed
> because connected host has failed to respond.
>
> could be networking connection :) but tcpip communication should be same for
> Windows mobile.
>
> can you try a simple test code that just upload ?
> without making those folders already exist ?
>
> --
> Regards,
> Bernard Cheah
>
http://www.iis.net/ >
http://msmvps.com/blogs/bernard/ >
>
> "ElCarso" <elcarso@somewhere.com> wrote in message
> news:669869F5-CF11-4164-B141-BFBC9E7DD881@microsoft.com...
> > Hi,
> >
> > is anybody able to help me with a question concerning FTP on mobile units?
> >
> > I have implemented FTP handling in an application aimed for both the
> > Windows
> > and the Windows Mobile platforms.
> > While connecting and moving files from a PC (Windows XP) to a server
> > (Windows Server 2003) everything goes fine.
> > But, when the same code runs on a Pocket PC, the application hangs for a
> > while on the write operation 'FtpPutFile(...)', and then regains control
> > and
> > displays an error message.
> > I've tried this both on Pocket PC 2002 and Windows Mobile 5 with the same
> > result.
> >
> > Below exactly what happens:
> > - FTP connection: OK
> > - File creation: OK
> > - Data transfer: no data uploaded.
> > The file is created on server side but its size is zero bytes.
> > The error returned from the 'GetLastError()' call is 183, which means
> > "Cannot create a file when that file already exists.".
> > But this makes no sense, because there was no such file on server side
> > when
> > the applciation started, and exactly the same procedure works fine when
> > executed on a PC.
> >
> > On server side the FTP log looks as follows, where the first block is from
> > the successful PC upload, while the second one is from the unsuccessful
> > Pocket PC upload:
> >
> > 12:04:56 213.201.63.80 [180]USER Administrator 331 0
> > 12:04:56 213.201.63.80 [180]PASS - 230 0
> > 12:04:56 213.201.63.80 [180]CWD / 250 0
> > 12:04:56 213.201.63.80 [180]MKD /temp/testfolder 550 183
> > 12:04:56 213.201.63.80 [180]MKD /temp 550 183
> > 12:04:56 213.201.63.80 [180]MKD /temp/testfolder 550 183
> > 12:04:56 213.201.63.80 [180]created /temp/testfolder/temp.txt 226 0
> > 12:04:56 213.201.63.80 [180]DELE /temp/testfolder/temp.txt 250 0
> >
> > 12:07:38 213.201.63.80 [181]USER Administrator 331 0
> > 12:07:38 213.201.63.80 [181]PASS - 230 0
> > 12:07:38 213.201.63.80 [181]CWD / 250 0
> > 12:07:38 213.201.63.80 [181]MKD /temp/testfolder 550 183
> > 12:07:38 213.201.63.80 [181]MKD /temp 550 183
> > 12:07:38 213.201.63.80 [181]MKD /temp/testfolder 550 183
> > 12:07:59 213.201.63.80 [181]created /temp/testfolder/temp.txt 425 10060
> >
> > The only differences I can see are the two numbers at the end of the
> > 'created' line, which are '250 0' in the first case, when it goes OK, and
> > '425 10060' in the second case, when it fails.
> >
> > Does anybody know what those numbers are, what they represent?
> > Is this relevant for my problem?
> > Does anybody know what the cause of the problem may be.
> >
> > I would be VERY grateful for any suggestion that can put me on the right
> > track.
> > Thanks in advance.
> >
> >
>
>