Getting The requested FTP command is not supported when using HTTP proxy
<p>I've been at this for days. The GetRequestStream() fails every time, even when set and verified as null. Here is the strange thing, it only happens on 3 out of 5 machines and I can't locate what the difference is. Anybody have a clue?</p>

<pre><code>Public Sub UploadFtpFile_Simple(PushFileName As String)
    Me.CreateFile(PushFileName, Me.FetchData())

    Dim CompleteFTPPath As String = "ftp://ftp.site.com/Filename.csv"
    Dim CompleteLocalPath As String = PushFileName
    Dim UName As String = Site1UserName
    Dim PWD As String = Site1Pass

    Dim reqObj As FtpWebRequest = DirectCast(WebRequest.Create(CompleteFTPPath), FtpWebRequest)
    'reqObj.Proxy = GlobalProxySelection.GetEmptyWebProxy()
    'reqObj.Proxy = Nothing
    'reqObj.Proxy = WebRequest.DefaultWebProxy
    'reqObj.Proxy = New System.Net.WebProxy()
    reqObj.Method = WebRequestMethods.Ftp.UploadFile
    reqObj.Credentials = New NetworkCredential(UName, PWD)
    Dim streamObj As FileStream = File.OpenRead(CompleteLocalPath)
    Dim buffer(streamObj.Length) As Byte
    streamObj.Read(buffer, 0, buffer.Length)
    streamObj.Close()
    streamObj = Nothing
    Try
        If DEBUGMODE Then
            reqObj.GetRequestStream()
        Else
            reqObj.GetRequestStream().Write(buffer, 0, buffer.Length)
        End If
        Console.WriteLine("GetRequestStream Success")
    Catch ex As Exception
        Console.WriteLine("GetRequestStream failure - {0} Stack Track:{1}", ex.Message, ex.StackTrace)
    End Try

    reqObj = Nothing
End Sub
</code></pre>