The code given in the first post works perfectly fine when running locally:

Dim clsRequest As System.Net.FtpWebRequest =...