System.UnauthorizedAccessException was unhandled

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top