473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

I fail to create registry keys from Xml Web Service

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
Nov 22 '05 #1
1 1445
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alexander Pino | last post by:
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...
5
by: Chakkaradeep | last post by:
Hi all, in my service i added my Registry Programming code,am facing with a problem which am not able to rectify it..the problem is , in the service, the program gets hanged and doesnt move...
21
by: Kevin Swanson | last post by:
I'm attempting some remote registry manipulation via C#. I've written a test app to simply grab a specified key from a specified hive on a specified machine. The call to OpenSubKey is throwing...
1
by: Itomeshi | last post by:
I'm currently writing a simple, unmanaged, VC++ 2003 unmanaged app without .NET libraries (for project specific reasons). My current stumbling block is how to delete a service. The only method I...
17
by: Chris Podmore | last post by:
When I perform: EventLog.WriteEntry(strSource, strEntry, EventLogEntryType.Error, intEventID) The event viewer reports The description for Event ID ( 234 ) in Source ( Siclops_WS_Mobile )...
0
by: tmsprowl | last post by:
Greetings! I was wondering if someone could help me with a problem I'm having. My department is just one of many within my organization. My organization has control over the network domain,...
5
by: Sin Jeong-hun | last post by:
I need to read some registry keys of a remote computer. The key will be any key users provide. (For example : HKEY_CURRENT_USER\SOFTWARE \MyGame) I found that there was a handy method called...
0
by: dipalichavan82 | last post by:
i created windows service with timer in which i m deleting files of specific extensions on client m/c n putting on server .i m taking values for 1.list of file extensions dat should be considerd...
3
by: Evan | last post by:
Hello, one of my PC is window system, and in "control panel -Network Connections", I can see some network connections such as PPPOE or VPN which I created by click "create a new connection". ...
6
vavc1980
by: vavc1980 | last post by:
I coded a windows service in Visual Studio 2005, I have the installer with it. The registry keys for the service are created in System\controlset001\MyService. The service is installed with...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.