I fail to create registry keys from Xml Web Service

  • Thread starter Thread starter Alexander Pino
  • Start date Start date
A

Alexander Pino

Hiya,

at this very moment I'm trying to write an XML Web Service for reading and
writing configuration/registry settings.
But for some reason I can read from the registry
('HKEY_LOCAL_MACHINE\SOFTWARE') but I do not seem to be able to create keys.

The moment I call RegistryKey.OpenSubKey(whatever, true) or
RegistryKey.CreateSubKey(whatever) a 'System.Security.SecurityException' is
raised. and tells me 'Requested registry access is not allowed'.

Does anyone now how I can solve this problem?

ps. I really have to use the registry, because that already exists from
older native company products.


Kind regards,
Alexander
 
By default the ASP.NET uses the ASPNET user account for access to any system resource. You can try granting this process the administrator rights on the local machine o
in the Web.Config file you can use the <identity impersonate="true" userName="xyz" password="abc"/
wher the username is the name of an account with sufficient priviledges to perform the neccessary action, in this case creating the registry ke
 
Back
Top