The server committed a protocol violation
The server committed a protocol violation
The server committed a protocol violation
The server committed a protocol violation
The server committed a protocol violation
The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation
The server committed a protocol violation The server committed a protocol violation
The server committed a protocol violation
Go Back  Xtreme Visual Basic Talk > > > The server committed a protocol violation


Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2010, 02:11 PM
pampam686 pampam686 is offline
Freshman
 
Join Date: Nov 2010
Posts: 33
Default The server committed a protocol violation


Code:
Function downloadFTP(ByVal ftpFileName As String, ByVal FTPdirectoryWithoutSlash As String, ByVal downloadTO As String, ByVal showProgress As Boolean)
        SetAllowUnsafeHeaderParsing20()
        Dim host As String
        host = "ftp://xxx:xxx@ftp.drivehq.com/"

        If main.FileExists(downloadTO) = True Then main.deleteTXT(downloadTO)

        If CheckIfFtpFileExists(ftpFileName) = False Then
            MsgBox("File does not exist on FTP")
        Else
            Try
                My.Computer.Network.DownloadFile(ftpFileName, downloadTO, "xxx", "xxx")
            Catch ex As Exception
                Dim s As String = ex.Message
                MsgBox(s, MsgBoxStyle.Critical, "Error")
                End
            End Try


        End If



        Return Nothing

    End Function
This error pops out but if i reset my modem it downloads the file. Then after a few tries the error reappears.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
The server committed a protocol violation
The server committed a protocol violation
The server committed a protocol violation The server committed a protocol violation
The server committed a protocol violation
The server committed a protocol violation
The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation The server committed a protocol violation
The server committed a protocol violation
The server committed a protocol violation
 
The server committed a protocol violation
The server committed a protocol violation
 
-->