I am getting the below error when i am trying read a file on the desktop. I am able to read the file on any other location. Can you tell me why i am getting this error.
System.UnauthorizedAccessException: Access to the path 'C:\Documents and Settings\XXXXX\Desktop\kk\XXXXX86.JPG' is denied.
Here is the statement i am using to read the file.
System.IO.FileStream stream = new System.IO.FileStream(file,