Click here to Skip to main content
15,867,568 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Please can some one help me with this problem Pin
Richard Deeming14-Apr-20 0:53
mveRichard Deeming14-Apr-20 0:53 
QuestionWhat are the best languages for web development? Pin
Member 1480030412-Apr-20 23:46
Member 1480030412-Apr-20 23:46 
AnswerRe: What are the best languages for web development? Pin
Bohdan Stupak13-Apr-20 5:36
professionalBohdan Stupak13-Apr-20 5:36 
GeneralRe: What are the best languages for web development? Pin
dioscarey18-Apr-20 6:02
dioscarey18-Apr-20 6:02 
AnswerRe: What are the best languages for web development? Pin
dioscarey17-Apr-20 7:17
dioscarey17-Apr-20 7:17 
AnswerRe: What are the best languages for web development? Pin
Jin Vincent Necesario18-Apr-20 1:02
professionalJin Vincent Necesario18-Apr-20 1:02 
AnswerRe: What are the best languages for web development? Pin
ErikBoots16-Dec-21 1:46
professionalErikBoots16-Dec-21 1:46 
QuestionWeClient Download Files Pin
Kevin Marois29-Mar-20 13:20
professionalKevin Marois29-Mar-20 13:20 
My website, www.maroisconsulting.com, is hosted on Arvixe. I would like to create a folder, put some files in it, then allow an app I'm working on the download the files. I've never done this before and I'm stuck

Here's my download code so far.
namespace DownloadFiles
{
    class Program
    {
        static WebClient wc;

        static void Main(string[] args)
        {
            var fileUrl = "http://" + "www.maroisconsulting.com/SomePlace/SomeFile.txt";  // Broke it up so it would format here

            wc = new WebClient();

            wc.DownloadProgressChanged += Wc_DownloadProgressChanged;
            wc.DownloadFileCompleted += Wc_DownloadFileCompleted;
            wc.DownloadFileAsync(new Uri(fileUrl), @"c:\files\SomeFile.txt");

            Console.ReadLine();
        }

        private static void Wc_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
        {
            if (e.Cancelled)
            {
                Console.WriteLine("The download has been cancelled");
                return;
            }

            if (e.Error != null) 
            {
                Console.WriteLine("An error ocurred while trying to download file" + Environment.NewLine + e.Error.Message);

                return;
            }

            Console.WriteLine("File succesfully downloaded");
        }

        private static void Wc_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
        {
            Console.WriteLine(e.ProgressPercentage + "% | " + e.BytesReceived + " bytes out of " + e.TotalBytesToReceive + " bytes retrieven.");
        }
    }
}
When I run, the Wc_DownloadFileCompleted fires immediately with the error
The remote server returned an error: (404) Not Found.

When I go in to the Arvixe Control Panel, File Manager, for my site, the file does exist. Again, this is new to me so I am probably doing something wrong.

Can anyone show me how this is done?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: WeClient Download Files Pin
Peter_in_278029-Mar-20 15:17
professionalPeter_in_278029-Mar-20 15:17 
GeneralRe: WeClient Download Files Pin
Kevin Marois29-Mar-20 15:29
professionalKevin Marois29-Mar-20 15:29 
GeneralRe: WeClient Download Files Pin
Peter_in_278029-Mar-20 17:34
professionalPeter_in_278029-Mar-20 17:34 
QuestionInserting Null Values with sqlBulk.ColumnMappings.Add() Pin
KGr2824-Mar-20 4:13
KGr2824-Mar-20 4:13 
QuestionBrowser-based Document Scanning Application Pin
Kami Dehlvi21-Mar-20 8:42
Kami Dehlvi21-Mar-20 8:42 
Answer[REPOST] Browser-based Document Scanning Application Pin
Richard Deeming23-Mar-20 0:31
mveRichard Deeming23-Mar-20 0:31 
AnswerRe: Browser-based Document Scanning Application Pin
Richard MacCutchan23-Mar-20 0:56
mveRichard MacCutchan23-Mar-20 0:56 
QuestionCreating anonline-educational platform ? Pin
dika2311-Mar-20 16:58
dika2311-Mar-20 16:58 
SuggestionRe: Creating anonline-educational platform ? Pin
Richard MacCutchan11-Mar-20 22:47
mveRichard MacCutchan11-Mar-20 22:47 
GeneralRe: Creating anonline-educational platform ? Pin
Blikkies12-Mar-20 0:15
professionalBlikkies12-Mar-20 0:15 
AnswerRe: Creating anonline-educational platform ? Pin
ErikBoots16-Dec-21 2:08
professionalErikBoots16-Dec-21 2:08 
QuestionHow we disable the web print from page Pin
Member 147638494-Mar-20 20:04
Member 147638494-Mar-20 20:04 
AnswerRe: How we disable the web print from page Pin
Richard MacCutchan4-Mar-20 22:07
mveRichard MacCutchan4-Mar-20 22:07 
Questionearning money (paypal) from a game ? Pin
Isawyouoo1-Mar-20 6:12
Isawyouoo1-Mar-20 6:12 
AnswerRe: earning money (paypal) from a game ? Pin
dioscarey17-Apr-20 7:39
dioscarey17-Apr-20 7:39 
QuestionHow do I fix the push sidebar menu CSS? Pin
Member 1474620516-Feb-20 8:19
Member 1474620516-Feb-20 8:19 
AnswerRe: How do I fix the push sidebar menu CSS? Pin
Member 1480030412-Apr-20 23:44
Member 1480030412-Apr-20 23:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.