Click here to Skip to main content
15,886,422 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multithreading with screen refresh Pin
amitcoder835-Nov-07 0:34
amitcoder835-Nov-07 0:34 
GeneralRe: Multithreading with screen refresh Pin
ateeb5-Nov-07 0:45
ateeb5-Nov-07 0:45 
GeneralRe: Multithreading with screen refresh Pin
Robert Rohde5-Nov-07 2:01
Robert Rohde5-Nov-07 2:01 
GeneralRe: Multithreading with screen refresh Pin
Luc Pattyn5-Nov-07 2:05
sitebuilderLuc Pattyn5-Nov-07 2:05 
QuestionDisplay a String[] Array Pin
Kantel5-Nov-07 0:24
Kantel5-Nov-07 0:24 
AnswerRe: Display a String[] Array Pin
Pete O'Hanlon5-Nov-07 0:27
mvePete O'Hanlon5-Nov-07 0:27 
AnswerRe: Display a String[] Array Pin
amitcoder835-Nov-07 0:31
amitcoder835-Nov-07 0:31 
QuestionUnauthorised access to my local directory while using webclient [modified] Pin
amitcoder835-Nov-07 0:15
amitcoder835-Nov-07 0:15 
Hello all,
I'm using a webclient class to download a file from some website
so my code is
Webclient webobj=new Webclient();
webobj.DownloadFile("http://www.codeproject.com/into/stuff/cp_bg_black1024.gif",@"c:\MyFiles");

the problem is that it gives me an exception stating i dont have access rights to my folder "c:\MyFiles" i tried enabling access rights to this folder to everyone giving fullcontrol but yet its not working.
Can anyone suggest me a solution to this.does anyone know whats causing the problem.

the detailed error is as follows

System.Net.WebException: An exception occurred during a WebClient request. ---> System.UnauthorizedAccessException: Access to the path 'C:\mydata' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at System.Net.WebClient.DownloadFile(Uri address, String fileName)
--- End of inner exception stack trace ---
at System.Net.WebClient.DownloadFile(Uri address, String fileName)
at System.Net.WebClient.DownloadFile(String address, String fileName)
at Autdownloadingfile.Form1.btnAutoDwnld_Click(Object sender, EventArgs e) in C:\downloadingfile\Form1.cs:line 33






AMIT
QuestionEmail mime type Pin
dabs5-Nov-07 0:04
dabs5-Nov-07 0:04 
QuestionLOC Counter Pin
Ya3sam4-Nov-07 23:57
Ya3sam4-Nov-07 23:57 
AnswerRe: LOC Counter Pin
Pete O'Hanlon5-Nov-07 0:14
mvePete O'Hanlon5-Nov-07 0:14 
JokeRe: LOC Counter Pin
Luc Pattyn5-Nov-07 2:08
sitebuilderLuc Pattyn5-Nov-07 2:08 
GeneralRe: LOC Counter Pin
Pete O'Hanlon5-Nov-07 4:22
mvePete O'Hanlon5-Nov-07 4:22 
QuestionMessageQueue permissions Pin
gewe4-Nov-07 23:55
gewe4-Nov-07 23:55 
QuestionGet methods from class file Pin
Ya3sam4-Nov-07 23:53
Ya3sam4-Nov-07 23:53 
AnswerRe: Get methods from class file Pin
Pete O'Hanlon5-Nov-07 0:10
mvePete O'Hanlon5-Nov-07 0:10 
GeneralRe: Get methods from class file Pin
Ya3sam5-Nov-07 1:41
Ya3sam5-Nov-07 1:41 
GeneralRe: Get methods from class file Pin
Pete O'Hanlon5-Nov-07 1:48
mvePete O'Hanlon5-Nov-07 1:48 
GeneralRe: Get methods from class file Pin
Ya3sam5-Nov-07 3:48
Ya3sam5-Nov-07 3:48 
QuestionCalculate CPU Percentage of processes in a dual core system Pin
Lakshmi Venkatesh4-Nov-07 22:56
Lakshmi Venkatesh4-Nov-07 22:56 
AnswerRe: Calculate CPU Percentage of processes in a dual core system Pin
Luc Pattyn5-Nov-07 2:13
sitebuilderLuc Pattyn5-Nov-07 2:13 
QuestionPackage that can be used for POS Pin
ChrisFarrugia4-Nov-07 22:36
ChrisFarrugia4-Nov-07 22:36 
AnswerRe: Package that can be used for POS Pin
Pete O'Hanlon4-Nov-07 22:38
mvePete O'Hanlon4-Nov-07 22:38 
AnswerRe: Package that can be used for POS Pin
martin_hughes4-Nov-07 23:48
martin_hughes4-Nov-07 23:48 
GeneralRe: Package that can be used for POS Pin
ChrisFarrugia5-Nov-07 0:39
ChrisFarrugia5-Nov-07 0:39 

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.