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"
<Mo***********@discussions.microsoft.com> wrote:
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.LocalMachine
RegKey = RegKey.OpenSubKey(KeyPath, True)
but it gives me an error, unauthorized access of registry
thanks