0

I'm trying to make a program to download a file from the internet.

it compiles fine.

but when i press the button to start the download comes up with this

An exception occurred during a WebClient request.

heres the source code to it

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            WebClient Client = new WebClient();
            Client.DownloadFile("http://wiibrew.org/w/images/c/cf/Lsusb.tar.bz2", "C:\\Users\\Skull\\Desktop");
        }
    }
}
3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by williamrojas78
0

it works now without errors. But it doesn't save it?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.