Click here to Skip to main content
14,427,367 members

Article Writing

 
PinnedFound plagiarism? Not sure if it is plagiarism? PinPopular
Sean Ewington30-Jul-15 6:25
editorSean Ewington30-Jul-15 6:25 
PinnedNote From Code Project - The Article Writing Forum PinPopular
Sean Ewington17-Jul-09 5:12
editorSean Ewington17-Jul-09 5:12 
QuestionMessage Closed Pin
21-Jan-20 11:08
MemberMember 1472289021-Jan-20 11:08 
QuestionRdlc Report Preview Error in Visual Studio 2017 Pin
Member 134969887-Jan-20 8:47
MemberMember 134969887-Jan-20 8:47 
AnswerRe: Rdlc Report Preview Error in Visual Studio 2017 Pin
Richard Deeming7-Jan-20 9:39
communityengineerRichard Deeming7-Jan-20 9:39 
GeneralRe: Rdlc Report Preview Error in Visual Studio 2017 Pin
Member 134969888-Jan-20 2:33
MemberMember 134969888-Jan-20 2:33 
AnswerRe: Rdlc Report Preview Error in Visual Studio 2017 Pin
ZurdoDev8-Jan-20 3:20
mveZurdoDev8-Jan-20 3:20 
QuestionBlogs needing help Pin
Nelek5-Jan-20 8:25
protectorNelek5-Jan-20 8:25 
AnswerRe: Blogs needing help Pin
Sean Ewington6-Jan-20 6:47
editorSean Ewington6-Jan-20 6:47 
QuestionMy Technical Blog doesn't convert well Pin
Jakub Czakon3-Jan-20 3:52
MemberJakub Czakon3-Jan-20 3:52 
QuestionFtpWebRequest upload empty file on windows 1903 Pin
Brollie27-Dec-19 3:12
MemberBrollie27-Dec-19 3:12 
Problem with VB.net code.
After windows update to 1903 version this code(which worked before) leaves an empty file on the server.
Can someone help me?

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
         UploadFile("C:\test.txt, Servername & "/test.txt", User, PW)
        Application.DoEvents()
   End Sub
    Public Sub UploadFile(ByVal _FileName As String, ByVal _UploadPath As String, ByVal _FTPUser As String, ByVal _FTPPass As String)

        Try
            Dim _FileInfo As New System.IO.FileInfo(_FileName)
            Dim _FtpWebRequest As System.Net.FtpWebRequest = CType(System.Net.FtpWebRequest.Create(New Uri(_UploadPath)), System.Net.FtpWebRequest)
            _FtpWebRequest.Credentials = New System.Net.NetworkCredential(_FTPUser, _FTPPass)
            _FtpWebRequest.EnableSsl = True
            _FtpWebRequest.KeepAlive = False
            _FtpWebRequest.Timeout = 15000
            _FtpWebRequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile
            _FtpWebRequest.UseBinary = True
            _FtpWebRequest.ContentLength = _FileInfo.Length
            Dim buffLength As Integer = 2048
            Dim buff(buffLength - 1) As Byte
            Dim _FileStream As System.IO.FileStream = _FileInfo.OpenRead()
            Dim _Stream As System.IO.Stream = _FtpWebRequest.GetRequestStream()
            Dim contentLen As Integer = _FileStream.Read(buff, 0, buffLength)
            Application.DoEvents()
            Do While contentLen <> 0
                _Stream.Write(buff, 0, contentLen)
                contentLen = _FileStream.Read(buff, 0, buffLength)
            Loop
                    Catch ex As Exception
            End Try
    End Sub

AnswerRe: FtpWebRequest upload empty file on windows 1903 Pin
Richard MacCutchan27-Dec-19 3:40
communityengineerRichard MacCutchan27-Dec-19 3:40 
GeneralRe: FtpWebRequest upload empty file on windows 1903 Pin
Brollie27-Dec-19 4:28
MemberBrollie27-Dec-19 4:28 
GeneralRe: FtpWebRequest upload empty file on windows 1903 Pin
Richard Deeming7-Jan-20 9:36
communityengineerRichard Deeming7-Jan-20 9:36 
GeneralRe: FtpWebRequest upload empty file on windows 1903 Pin
Richard MacCutchan7-Jan-20 10:10
communityengineerRichard MacCutchan7-Jan-20 10:10 
QuestionSetting an article's thumbnail Pin
Greg Utas24-Dec-19 4:23
professionalGreg Utas24-Dec-19 4:23 
QuestionIncluding Android Code XML in Article Pin
Hari199222-Dec-19 21:26
MemberHari199222-Dec-19 21:26 
SuggestionRe: Including Android Code XML in Article Pin
Richard MacCutchan22-Dec-19 22:51
communityengineerRichard MacCutchan22-Dec-19 22:51 
AnswerRe: Including Android Code XML in Article Pin
Sean Ewington23-Dec-19 5:14
editorSean Ewington23-Dec-19 5:14 
QuestionHow to include images in article? Pin
David Deley19-Dec-19 8:29
MemberDavid Deley19-Dec-19 8:29 
AnswerRe: How to include images in article? Pin
Sean Ewington19-Dec-19 8:33
editorSean Ewington19-Dec-19 8:33 
QuestionBlogs needing help Pin
Nelek13-Dec-19 9:06
protectorNelek13-Dec-19 9:06 
QuestionNeed sample c# code for multi selection combobox filled along with search features for windows app. Pin
Member 1198058411-Dec-19 23:42
MemberMember 1198058411-Dec-19 23:42 
AnswerRe: Need sample c# code for multi selection combobox filled along with search features for windows app. Pin
Pete O'Hanlon12-Dec-19 0:57
communityengineerPete O'Hanlon12-Dec-19 0:57 
QuestionImages missing from new article Pin
Cp-Coder1-Dec-19 8:05
MemberCp-Coder1-Dec-19 8:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.