Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. time out exception while uploading to FTP [modified]

time out exception while uploading to FTP [modified]

Scheduled Pinned Locked Moved C#
csharpsysadminperformancehelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Iftekhar Naim
    wrote on last edited by
    #1

    I have developed an application that will upload files to FTP Server as part of its task. Now it works quite well most of the time. But sometimes it gets web exception-called timeout exception - System.Net.WebException: The operation has timed out. at System.Net.FtpWebRequest.GetRequestStream() I searched in google and didn't find any useful help. I saw an attibute (in FtpWebRequest class) called Timeout. I didn't set any value to it, cause i assumed that the default value will do. But now that it gets timeout exceptions , what should i do? 1. Can i solve it Just by setting some high value in this(timeout) attribute ? will it have any performance overhead ? 2. I am using FtpWebRequest. I am sending synchronous calls. Do I need to change it to asynchronous calls or it will be all the same? Is there any relation between time out and Sync/ASync calls ? I am finding no solution to this. So i will be waiting for a help from this forum. thanks -- modified at 13:46 Wednesday 4th July, 2007

    Chayan

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups