FTP client as service doesn't work

MOsosky
MOsosky used Ask the Experts™
on
We have a application we wrote that needs to FTP files to a server. When we run this app as a regular windows program everything works fine. When we run it as a windows service it can't login to the FTP server, it timesout. I have turned off my firewall. Is there anything that would stop this from working as a service but let it work as a application? I've tried this on win7, and vista and targeted 2 different FTP servers.

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
try creating a user account and let the service run under that account instead of under the system account

Author

Commented:
I thought I tried that before but I did it again. I set the user account to my domain login which is an admin account and the same one I use when I run it as an app and it works.
Commented:
so you're good? create a dedicated account for the service (no admin) and the problem is solved...

Author

Commented:
Negative, still fails when service is logged in as domain admin.

Commented:
check the GPO/local policies?

Author

Commented:
No I haven't, have the GP editor open. What should I be looking for?

Commented:
Can't check now, other question: can you enable logging in the application itself to see where exactly it fails? do you see something in the FTP servers log ?

Author

Commented:
We are logging from the app, and have confined it has the correct FTP url and login info. It then generates a timeout err. The FTP server log shows no activity.

Author

Commented:
We have resolved this problem, it appears to be a bug in the component toolkit we were using (ip*Works). Their support assured us it would work as a service, it doesn't. We wrote our own native code FTP and it works just fine. I've giving you the points for effort! Thanks! Even though it was stuff I had already tried, not turning up something new forced us to look in a new direction that ultimately solved the problem.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial