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 3978570
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:03:51+00:00 2026-05-20T05:03:51+00:00

I implement asynchronous download to retrieve remote file and store it in IsolatedStorage in

  • 0

I implement asynchronous download to retrieve remote file and store it in IsolatedStorage in order to use it when out of the network.

Everything works great when network is up. However when out of network, I noticed that async donwload may take up to 2 minutes before to fire my MessageBox (which say that connection to server has failed).

Question:
Is there any way to define a timeout ? Let’s say that if my application does not receive any answer for X seconds then stop the Async Download and call a method.

Maybe a timeout is not the best pratices. In this case could you give me suggestion ?
I do not want my user wait for 15 seconds max.

PS: my application is suppose to run on wifi only, so I consider that ‘network speed’ is optimal.

Thx for your help

  • 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-20T05:03:51+00:00Added an answer on May 20, 2026 at 5:03 am

    What I would recommend doing is check the network type first via NetworkInterface. If NetworkInterfaceType is Wireless80211, you have a wireless connection (Wi-Fi). The returned connection can be None in case there is no available way to connect – so you won’t even have to start the download if there is no accessible network.

    Answering your question, if you are using WebClient, you can’t define a timeout. However, you can call instance.CancelAsync(). For a HttpWebRequest you can call instance.Abort().

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

Sidebar

Related Questions

I am trying to implement an Asynchronous file download from a web server using
boost:: asio provides an example of how to use the library to implement asynchronous
I'm writing a program that among other things needs to download a file given
I would like to implement asynchronous email sending in my web application when users
I am attempting to implement an asynchronous method queue in Javascript as seen in
I wonder how could I implement an asynchronous call in standard C++. I have
Hey, I'm trying to implement a ConcurrentQueue in C# for an asynchronous server. Items
I'm implement Comet in asp.net, and I'm using asynchronous post back to keep request
I am writing a download file utility using WinINET, and have noticed (especially on
I am trying to learn how to implement an asynchronous pattern to query multiple

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.