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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:52:07+00:00 2026-05-22T20:52:07+00:00

The prompt that we usually get when downloading a file from a website using

  • 0

The prompt that we usually get when downloading a file from a website using the IE is hampering the download of a tar file for me .

I am using C# .

Here is the code snippet .

WebClient wc = new WebClient();
wc.DownloadFileAsync(@”www.somelink.com”, @”C:\a.tgz”);

What i get is not a valid a.tgz file.
I am assuming its downloading some content related to the save/open dialog given by the internet browser .

How do I by pass it ?

  • 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-22T20:52:07+00:00Added an answer on May 22, 2026 at 8:52 pm

    Are you downloading the entire file? It could be the download is being interrupted prematurely.

    The save/open dialog is not a problem, as that is IE’s method of displaying non-HTML content. However if the website is responding with a webpage then that could be your problem (for instance “You need to be logged in to proceed” or “Click here to download the file”).

    Try renaming the file to html and see if you can read it then. Alternatively you can load it in notepad to see if it is plaintext if you are afraid of what the contents are for any reason.

    EDIT:

    You may also not be fully downloading the file, given the description on MSDN of the methodology, an empty file is placed at the target location, the file is downloaded to a temporary location, then finally it is moved to the target, if the download is being interrupted, by say the program exiting, that would explain the problem you are experiencing.

    Short version: Try downloading synchronously and see if that works better.

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

Sidebar

Related Questions

Is it possible, in Javascript, to prompt user for downloading a file that isn't
I have a website that prompt the users to enter serial number for a
When we run a update query we get prompt saying that 'these many records
By default, copying from the command prompt will prompt you to overwrite files that
I use a CLI that starts a prompt in my shell. However, I usually
In the Windows Explorer there is a function 'command-prompt-here' that opens a command prompt
I am writing code that will migrate some data from one database to another,
The prompt says that if I install the software into a directory with spaces:
I am making a prompt in C# that instructs the user how to use
I want to prompt the user that something special has happened, so I want

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.