I have an inhouse application written using C# (.NET version: 2.0.7045.0), running on a Symbol MC1000 running Windows CE 5.0, comms are through the cradle connected via USB. Using Rebex version: 3.0.3854.0
Background: Originally, this application used handrolled FTP code which worked 100% on Windows XP SP2. But when moving to Windows 7 (with latest service pack and updates)it started failing. So, we changed to the Rebex library, assuming that it was our FTP code. This seemed to fix the problem.
But later on windows 7, we started seeing this exception during Connect():
An existing connection was forcibly closed by the remote host.
Now here's the weird thing. When that occurs, if prior to restarting the app, I open a windows command prompt and manually login to the secure FTP site, and then retry the app, it works!!
I've only tried the command prompt 'trick' whilst running in the VS2008 debugger; but the exception occurs running in debugger and standalone executable.
Using Windows Mobile Device Centre (everything worked under Windows XP using Active Sync)
Releated question: FTP error from wince 5.0 device