Author: shabbir_215 | Posted on: 3/10/2010 7:27:25 AM | Views : 517

Hi All


I am getting an error when i tried to download a file from FTP server "The underlying connection was closed: An unexpected error occurred on a receive."


below is the code


Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Download("C:/it/", "test.xml")
    End Sub


    Private Sub Download(ByVal filePath As String, ByVal fileName As String)

        Dim reqFTP As FtpWebRequest

        Try
            'filePath = <<The full path where the file is to be created. the>>,

            'fileName = <<Name of ...

Go to the complete details ...