By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,075 Members | 947 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,075 IT Pros & Developers. It's quick & easy.

I fail to create registry keys from Xml Web Service

P: n/a

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,
Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
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

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.