DeveloperBarn Forums

Go Back   DeveloperBarn Forums > Programming & Scripting > .Net Development

Discuss "FTP Class Library?" in the .Net Development forum.

.Net Development - Learn about the Microsoft.Net framework and how to create powerful web-based (ASP.net) and client-based (Windows Forms) applications utilizing various languages such as C#, VB.Net, J# and others.


Reply « Previous Thread | Next Thread »  
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old May 27th, 2008, 02:43 PM
Wolffy's Avatar
Slaprentice of Wolves


 
Join Date: Mar 2008
Location: Peoria, IL
Posts: 146
Thanks: 1
Thanked 23 Times in 20 Posts
Rep Power: 1
Wolffy is on a distinguished road

Awards Showcase
Microsoft .Net 
Total Awards: 1

Default FTP Class Library?

I'm looking for a FREE FTP library for .NET.

I've found a few that either (a) cost money or (b) stink. All I need is to upload a single file, once per month to MVS, and about the only thing standing in my way of automating this is a .NET FTP class library -- that I really don't want to write myself.
__________________
Wolffy
------------------------
Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old May 27th, 2008, 02:51 PM
jmurrayhead's Avatar
Your Lord & Master

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 530
Thanks: 14
Thanked 38 Times in 37 Posts
Blog Entries: 2
Rep Power: 1
jmurrayhead is on a distinguished road

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

I'm unable to find much that meets your requirements, but maybe you can poke around at this for a while: CodeProject: FTP component written with fully managed code. Free source code and programming help

I have a feeling you might end up either writing your own or rewriting someone elses script, however...
__________________
jmurrayhead
Did I help you out? Make me popular by clicking the icon!

If you found a post helpful, please click the button in the lower right-hand corner of the post.

Powered by ASP.Net
Reply With Quote
  #3 (permalink)  
Old May 27th, 2008, 02:58 PM
Wolffy's Avatar
Slaprentice of Wolves


 
Join Date: Mar 2008
Location: Peoria, IL
Posts: 146
Thanks: 1
Thanked 23 Times in 20 Posts
Rep Power: 1
Wolffy is on a distinguished road

Awards Showcase
Microsoft .Net 
Total Awards: 1

Default

Yeah, I looked at that one and put it into my (b) category. It seems to work, but the documentation is practically non-existent. I just located another possible, with source code, that I'm stepping through now. If it works, I'll post back the link.
Reply With Quote
  #4 (permalink)  
Old May 27th, 2008, 03:03 PM
jmurrayhead's Avatar
Your Lord & Master

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 530
Thanks: 14
Thanked 38 Times in 37 Posts
Blog Entries: 2
Rep Power: 1
jmurrayhead is on a distinguished road

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

Quote:
Originally Posted by Wolffy View Post
Yeah, I looked at that one and put it into my (b) category. It seems to work, but the documentation is practically non-existent. I just located another possible, with source code, that I'm stepping through now. If it works, I'll post back the link.
Yeah, I figured you had come across that one...every component I looked at was either poorly documented and/or written or cost a few hundred dollars.

If you do end up writing your own, you could post in the Code Samples forum for free
Reply With Quote
  #5 (permalink)  
Old May 27th, 2008, 04:20 PM
Wolffy's Avatar
Slaprentice of Wolves


 
Join Date: Mar 2008
Location: Peoria, IL
Posts: 146
Thanks: 1
Thanked 23 Times in 20 Posts
Rep Power: 1
Wolffy is on a distinguished road

Awards Showcase
Microsoft .Net 
Total Awards: 1

Default

Well, I may be SOL here. While I think I could manage to get this working using FtpWebRequest (tho some blog entries I've found say this can't be done to MVS or OS/400), I need to issue the QUOTE SITE command, which doesn't appear to be supported by FtpWebRequest. Bloody Heck.

I did see an idea to run FTP in it's own process -- tho at the moment I'm considering a batch file and stuffing the FTP command into the console buffer -- ah, welcome to the 1980's.
Reply With Quote
  #6 (permalink)  
Old May 28th, 2008, 01:23 PM
Wolffy's Avatar
Slaprentice of Wolves


 
Join Date: Mar 2008
Location: Peoria, IL
Posts: 146
Thanks: 1
Thanked 23 Times in 20 Posts
Rep Power: 1
Wolffy is on a distinguished road

Awards Showcase
Microsoft .Net 
Total Awards: 1

Default

I was about ready to knuckle down and write something, but took one last look around the net. I came across an open source FTP .NET library here: .NET FTP, FTP .NET, FTP C#, FTP VB, C# FTP, VB FTP that is well documented. I've just now downloaded the source, and will see if it's a good as it first appears to be,

Comments on this post
jmurrayhead agrees: Nice!
Reply With Quote
The Following User Says Thank You to Wolffy For This Useful Post:
jmurrayhead (May 28th, 2008)
  #7 (permalink)  
Old May 30th, 2008, 10:26 AM
Wolffy's Avatar
Slaprentice of Wolves


 
Join Date: Mar 2008
Location: Peoria, IL
Posts: 146
Thanks: 1
Thanked 23 Times in 20 Posts
Rep Power: 1
Wolffy is on a distinguished road

Awards Showcase
Microsoft .Net 
Total Awards: 1

Default

I managed to get a clean compile of this library after only about 20 minutes. I had to make only two minor fixes:
(a) OS/400 support didn't seem to be included. Since I don't care about OS/400, I just removed the references to it.
(b) There were a few deprecated methods from .NET 1.1 that could easily be replaced with .NET 2.0 methods (1-1 replacement in each case). There was some conditional compilation in there for 2.0, but it wasn't complete.

Once I got the clean compile, I included what I needed in my application, and got it to work first time! Total time spent: about 90 minutes.

Highly Recommended
Reply With Quote
Reply

  DeveloperBarn Forums > Programming & Scripting > .Net Development

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
class name is ambiguous richyrich .Net Development 11 August 12th, 2008 11:11 AM
Class library Shem .Net Development 11 May 22nd, 2008 07:01 AM

LinkBacks (?)
LinkBack to this Thread: http://www.developerbarn.com/net-development/223-ftp-class-library.html
Posted By For Type Date
Database Management » Blog Archive » FTP Class Library? This thread Pingback May 27th, 2008 03:25 PM


Sponsored Links

ASP.NET Resource Index
a directory of ASP.NET tutorials, applications, scripts, assemblies and articles for the novice to professional developer.

Free Web Directory
Including Chats and Forums Resources, Offer automatic, instant and free directory submissions.
URLZ Web Directory
URLZ Web Directory

Free Web Directory - Add Your Link
The Little Web Directory
Free Web Directory
Pegasus free web directory is a free directory organised by categories.

Web Directory & SEO Services
dirroot web directory


All times are GMT -4. The time now is 07:49 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2008 DeveloperBarn.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46