System.UnauthorizedAccessException was unhandled

  • Thread starter Thread starter Chu2ch
  • Start date Start date
C

Chu2ch

Hello,

I am using vb.net with .net 3.5 and vs 2008 to build a small
application that iterates through all the directories on my hard disk.

However i get an error while executing the FileIO.FileSystem.GetFiles
method when trying to get the files for C:\Documents and Settings.

The error is:

System.UnauthorizedAccessException was unhandled
Message="Access to the path 'C:\Documents and Settings' is denied."
Source="mscorlib" ...

any help is appreciated

TIA

Chris
 
Back
Top