in reply to Net::FTP and Microsoft FTP Service

Here's a possibility, and a way you might test.

Are you sure you have enough permissions in the destination directory to create the file, i.e. the dir where you're running the script from? Is it posible when you tested manually you were in a different dir - one where you had write permissions?

Crank debug up to 2 or 3 to capture more info.