1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C#:The underlying connection was closed: An unexpected error occurred on a receive.

Discussion in 'C, C++, C#' started by kytro360, Sep 18, 2011.

Tags:
  1. kytro360

    kytro360 Power Member

    Joined:
    Jan 12, 2010
    Messages:
    703
    Likes Received:
    733
    I am trying to do a httpwebrequest with a proxy and everytime I try to do it I get this error:

     
  2. ~divinci

    ~divinci Registered Member

    Joined:
    Sep 23, 2009
    Messages:
    51
    Likes Received:
    11
    Occupation:
    Infastructure Reverse Engineer
    Location:
    Liverpool UK
    Ive seen this when the connection dies. A TCP SYN not being acknowledged. Porbs a bad server, maybe a bad switch or route.

    if this happens with bad proxies, you will be able to change the timeout in the registry.
     
  3. hiderightnow

    hiderightnow Junior Member

    Joined:
    Jul 19, 2010
    Messages:
    104
    Likes Received:
    22