Possible Duplicate:
How to check FTP connection?
Using VS.NET App
What would be very simple way to test is a connection is made to a FTP address using provided username/password just to validate that a user inputted a good address.
I just use Network.UploadFile to send a file but if the address is wrong just throws 500 error and it annoying.
I want to avoid going into the FTP classes and all that- Just looking for a simple clever way to do something like that.
Well, the simple clever way would be to use some FTP class or Network.Upload file to test it, wouldn’t it?
How about implementing some error handling for the exceptions that are thrown and providing feedback to the user if the address is incorrect?