accessing registry from web service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mostafa Salama

    accessing registry from web service

    i have a problem in accessing registry from web service
    i made a web service that call a function to access registry

    The web service contain the following code
    Dim RegKey As Microsoft.Win32 .RegistryKey
    RegKey = Microsoft.Win32 .Registry.Local Machine
    RegKey = RegKey.OpenSubK ey(KeyPath, True)
    but it gives me an error, unauthorized access of registry
    thanks

  • Marvin Smit

    #2
    Re: accessing registry from web service

    Hi,

    I guess the ASPNET account (which are the credentials under which your
    web site will run) does not have access to read the information from
    the registry (which makes sense ;) ).

    If possible, try using an account that does have access. (App pool in
    IIS)

    Hope this helps,

    Marvin Smit

    On Mon, 20 Jun 2005 03:55:02 -0700, "Mostafa Salama"
    <MostafaSalama@ discussions.mic rosoft.com> wrote:
    [color=blue]
    >i have a problem in accessing registry from web service
    >i made a web service that call a function to access registry
    >
    >The web service contain the following code
    > Dim RegKey As Microsoft.Win32 .RegistryKey
    > RegKey = Microsoft.Win32 .Registry.Local Machine
    > RegKey = RegKey.OpenSubK ey(KeyPath, True)
    >but it gives me an error, unauthorized access of registry
    >thanks[/color]

    Comment

    • Marvin Smit

      #3
      Re: accessing registry from web service

      Hi,

      I guess the ASPNET account (which are the credentials under which your
      web site will run) does not have access to read the information from
      the registry (which makes sense ;) ).

      If possible, try using an account that does have access. (App pool in
      IIS)

      Hope this helps,

      Marvin Smit

      On Mon, 20 Jun 2005 03:55:02 -0700, "Mostafa Salama"
      <MostafaSalama@ discussions.mic rosoft.com> wrote:
      [color=blue]
      >i have a problem in accessing registry from web service
      >i made a web service that call a function to access registry
      >
      >The web service contain the following code
      > Dim RegKey As Microsoft.Win32 .RegistryKey
      > RegKey = Microsoft.Win32 .Registry.Local Machine
      > RegKey = RegKey.OpenSubK ey(KeyPath, True)
      >but it gives me an error, unauthorized access of registry
      >thanks[/color]

      Comment

      Working...