Can not connect to a FTP serer on a Main frame computer using FtpWebRequest


   I have Windows application written in VB.NET that implements a file upload feature to a FTP server on a Main frame computer.  I use FtpWebRequest class in System.Net namespace to create the connection but I keep getting errors.  I search the Web and seem like quite a lot of questions like my errors have been asked but I can not find any answer yet.  The errors I got usually errors number 501 or 550.  Any body the aswer to this problem, please help.

Thank you.
lenguyen0366Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
arober11Commented:
Hi

Unless your writing to a Unix file system on the mainframe you'll first need to specify the necessary storage characteristics before the upload, usually done via a FTP "quote" command, see:

http://www.experts-exchange.com/Software/Internet_Email/File_Sharing/FTP/Q_22593710.html 

Unfortunately I don't believe the FtpWebRequest class supports this functionality.

About a decade back I used the an OnNet FTP dll / class, supplied with there now obsolete FTP client, to send the necessary commands. I've also written some code to fork a MS command line ftp session, in order to up-load file, as it support the use of the quote command.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
File Sharing Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.