|
-
Jun 17th, 2010, 09:45 PM
#1
Thread Starter
Lively Member
Updating useing a FTP server..
Does anyone know how to do it? Or can give me some Tutorials?
Please and Thankyou.
-
Jun 17th, 2010, 10:07 PM
#2
Re: Updating useing a FTP server..
For basic uploading and downloading you can use the WebClient class and its DownloadFile and UploadFile methods. Alternatively, you can use the DownloadFile and UploadFile methods of the My.Computer.Network object.
If you need finer control then you'd use the FtpWebRequest class. I would suggest starting by reading the documentation for that class, and probably the companion FtpWebResponse class, and then searching the web for examples if you need them.
-
Jun 17th, 2010, 10:11 PM
#3
Thread Starter
Lively Member
Re: Updating useing a FTP server..
Do you know of any guides Jmcil? I've got no idea when it comes to that.
Also, i want it to update when I upload the newest revision, I'm not sure how to get the program to realize that there is a new revision, and recognize that it must be downloaded.
Ideas?
-
Jun 17th, 2010, 10:24 PM
#4
Re: Updating useing a FTP server..
This is a fine example of why you should be providing a full and clear description of your problem up front. I'm now getting the feeling that you want to provide functionality in your app to update itself from an FTP site, but that was far from clear from your first post. All you said was "updating" with no indication of what was actually being updated.
I would suggest that, unless you have a specific reason not to, you should stick to auto-update functionality built into the Framework, i.e. ClickOnce. It's simply a matter of setting a few properties and publishing your project. Again, you should start by reading the documentation on ClickOnce and searching the web for examples.
Creating your own auto-update functionality is certainly possible but far from trivial.
-
Jun 17th, 2010, 11:07 PM
#5
Thread Starter
Lively Member
Re: Updating useing a FTP server..
Jmcil, I'm trying that, but every time i try to publish i get the same error..
"Error 1 Failed to connect to 'ftp://ftp.xtreemhost.com/' with the following error: Unable to create the Web site 'ftp://ftp.xtreemhost.com/'. The components for communicating with FrontPage Server Extensions are not installed. 1 1 RTExchangeHelper"
-
Jun 17th, 2010, 11:33 PM
#6
Re: Updating useing a FTP server..
Again, that's important information that you should be posting upfront. The first thing you should do is Google that error message.
http://www.google.com.au/search?q=Th...ient=firefox-a
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|