473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Filename Issue with FTP in .NET 2.0

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
Dec 27 '07 #1
2 1938
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. So for example you could list all
the files in a folder, etc. very easily. Their free offering comes complete
with C# source code.

http://www.enterprisedt.com/
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"Woodrow "asim" Jarvis Hill" wrote:
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
Dec 28 '07 #2
On Dec 27, 10:14 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.NoSpamMaam.comwrote:
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.
-- Peter
---Woodrow
Dec 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: S.W. Rasmussen | last post by:
With the risk of being accused of multi-posting I would like to draw the attention to a serious visual basic/windows issue discussed in the microsoft.public.vb.bugs newsgroup. As pointed out below...
17
by: Sean Ross | last post by:
Hi. Recently I made a small script to do some file transferring (among other things). I wanted to monitor the progress of the file transfer, so I needed to know the size of the files I was...
0
by: jinnareddy | last post by:
Hi, I'm unable to download a file that is having a 2-byte char in its name (e.g.テ) using force download option. Though, am able to download file names involving ASCII chars. I have tried URL...
7
by: pedagani | last post by:
Dear comp.lang.c++, I'm trying to read a file with very long filename using ifstream. Although, the file exists the file open for read fails. Is there a restriction on the size? I'm using winXP...
7
by: sumanta123 | last post by:
Dear Sir when i am getting the value from properties file the the path showing http://127.0.0.1:81/help/Subject of Issue.txt which is right. But in jsp in try block when pass SubjectofIssue path...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.