Results 1 to 4 of 4

Thread: Read Reg...again

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Posts
    124

    Read Reg...again

    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

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Posts
    124
    I figured out what the problem was.

    My vb project file was located on a network share.
    When I moved the project to the local disk the permission error didnt come up.

    I have admin rights on the local machine, but not on the network, something i didnt consider.

    Thanks for the white paper though, i needed it anyways.

    db

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    lol...The links messed up . sorry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width