C# webclient Issue

Posted 04 October 2012 - 12:44 PM

Hello everyone, I'm new to C# so please bare with me. I've not done any programming before and just decided to take this little task on myself since a friend of mine said it was a relatively easy project to do in Visual Basic. I've learned a lot over the past week thanks to this and the "Search" function and Google.

So, my work uses a VPN for me to be able to remotely log in whenever I need to. However the configuration changes frequently. So, instead of downloading a file every day and overwriting the existing configuration file manually I wanted it to be automated.

Replies To: C# webclient Issue

Re: C# webclient Issue

Get rid of that goto. You can accomplish the same thing using a while or do-while loop.

Then is no need to call Application.Exit(). Your program will exit by itself after the finally clause.

What is the exact error you are getting when you instantiate the WebClient object?

And I'd rather not bare with you. My preferences are towards the opposite sex and I'd rather bare with them. Unfortunately, my significant other has claimed exclusive rights so I'm only allow to bare with her. On the other hand, I am willing to bear with you.

Re: C# webclient Issue

Get rid of that goto. You can accomplish the same thing using a while or do-while loop.

Then is no need to call Application.Exit(). Your program will exit by itself after the finally clause.

What is the exact error you are getting when you instantiate the WebClient object?

And I'd rather not bare with you. My preferences are towards the opposite sex and I'd rather bare with them. Unfortunately, my significant other has claimed exclusive rights so I'm only allow to bare with her. On the other hand, I am willing to bear with you.

Yes, please "bear" with me as I'm not interested in you "baring" anything for me whatsoever. Keep that to your wife please.

The reason for the renames is for the off chance that another instance of OpenCV starts up and is holdig on to the file, Windows will usually let you rename a file that is being held open (this is how Windows can sometimes update DLLs even if a process is holding on to it and let you defer rebooting until later).

The reason for the renames is for the off chance that another instance of OpenCV starts up and is holdig on to the file, Windows will usually let you rename a file that is being held open (this is how Windows can sometimes update DLLs even if a process is holding on to it and let you defer rebooting until later).

Re: C# webclient Issue

Posted 05 October 2012 - 08:14 AM

If this is Vista or higher (or server 2k8) you'll need that manifest, or you'll need to right-click and run the executable as admin, even if you're an administrator on the computer, because of UAC. Program Files is one of the directories requiring elevated perms.