Filename Issue with FTP in .NET 2.0

  • Thread starter Woodrow \asim\ Jarvis Hill
  • Start date
W

Woodrow \asim\ Jarvis Hill

Hello folks, and Happy Holidays to those celebrating,

I'm fairly new to using the .NET framework, and am attempting to do
some FTP work. I have to use an authentication connection to a
mainframe FTP session, and due to support concerns, I need to use
either WebClient or FtpWebRequest for this. It's failing with a
"System.Net.WebException: The remote server returned an error: (501)
Syntax error
in parameters or arguments." and I suspect the report filenames,
which contain single quotes and parenthesis.
Part of my question is finding ways to debug the transaction better. I
could use FtpWebRequest, but I suspect, from seeing the docs and
sample code, I'll get the same error, since it's the remote server
choking. I've also tried it from IE, passing the username and
password, and it dies as well.
If anyone has ideas on the problem, that would be great. Ideas on how
to debug, short of passing all this through a local proxy (problematic
at best), are welcome as well.


----Woodrow Hill
 
P

Peter Bromberg [C# MVP]

W

Woodrow \asim\ Jarvis Hill

This is just my opinion, but I think the FTPWebRequest / WebClient FTP
implementations in .NET are pretty barebones. I use edFtp.net which is a
freeware and much more robust FTP client.

Fair enough. I think my team might balk at it's use, but I'm feeling
stuck between a rock and a hard place with being unable to see what
the FTP session is doing. Perhaps using this will help me uncover the
situation, and maybe fall back, eventually, to the native
implementations.

Thanks, Peter.

---Woodrow
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top