Which line are you getting the error on?
This error in general sounds to me like you have tried to access a folder that your user does not have permission to look at.
It would help if you would supply the values of the Message property, the Source Property, StackTrace Property. You can look at the HelpLink to see if there is any useful information there. The properties listed above will be on the exception object that you received.
If you include this information, we have a much better chance of determining what issue you have.
If the book you are working from has a chapter on exception/error handling, now is probably a good time to read it. :)
On a side note: This is not a forum for the book "Beginning
VB.Net", so we may not have access to, or have ever read Chapter 3, page 129. If you describe your problem fully, then we can try to help here. Or for book specific stuff, there is a forum specifically for that book. You can find it on the p2p.wrox.com site the tree to it is:
">All Forums>Books>Beginning
VB.NET, 2nd Edition"
John R Lick
[email protected]