Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6120747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:42:14+00:00 2026-05-23T15:42:14+00:00

We are using FTPWebRequest class in my project to upload PDF files. For uploading

  • 0

We are using FTPWebRequest class in my project to upload PDF files. For uploading the File we are using Write method by getting a GetRequestStream() from object of (FtpWebRequest)WebRequest.

After uploading files we read the file to get length(size of file). We are using
GetResponseStream method of FtpWebResponse for the same.

Everything work fines when files size is less but when heavy files are uploaded then it gives ‘550’ error of access denied.

It seems to me that when big files are being written on FTP and after closing the stream if we immediately go to read the file then it creates problem of access denied may be FTP Server has not removed the lock from file or its still writing the file from stream.

How can be get rid of this problem. Is there is any Event or a Way to find out that File has been successfully written on FTP Server when we are closing the Stream which is being used to Upload file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:42:15+00:00Added an answer on May 23, 2026 at 3:42 pm

    Though I don’t know why but following steps helped me to solve this problem

    1. Set the buffer size to low on FTP Server, generally it is 64 K you can set it to 32 k

    2. Send the chunks to Server, rather then sending it one go on stream, because when sending it in One go , data is kept in buffer and when we make request to read the file error is prompted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am transferring files using FtpWebRequest class in C#; in that class there is
I am uploading files to ftp using FtpWebRequest . I need to show the
I'm using ftpwebrequest to upload some files to an old mainframe system (MPE/IX) that
I am trying to download files from an ftp server using C# and ftpwebrequest.
I am using FtpWebRequest to upload a file. Facing a problem of which i
I am trying to upload a file via ftp using FtpWebRequest as below: ftpRequest
I am using FtpWebRequest to append data to a mainframe file. Each record appended
I want to do Multiple Download/Upload parallely in FTP using C# without using FTPWebRequest.
I’m using the following code to download a file from a remote ftp server:
I'm using the System.Net.FtpWebRequest class and my code is as follows: FtpWebRequest request =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.