I need to read all the keys from the following location in the reg

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

I know i have admin rights, since i can use RegEdit and Add\Delete Keys, however, when i try to read from the reg using VB.NET i get the following error:


Request for the permission of type System.Security.Permissions.RegistryPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

Do i need to set access with vb?

thanks ahead of time

dave