473,766 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Nov 23 '05 #1
2 2428
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.mic rosoft.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.Local Machine
RegKey = RegKey.OpenSubK ey(KeyPath, True)
but it gives me an error, unauthorized access of registry
thanks


Nov 23 '05 #2
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.mic rosoft.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.Local Machine
RegKey = RegKey.OpenSubK ey(KeyPath, True)
but it gives me an error, unauthorized access of registry
thanks


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2934
by: Ramesh | last post by:
hi, I have created COM when i try to use that instance in C#.net Wep application i am getting following error message. DBUsingCom is my Component name and BusinessObject as a Class name.can anybody help to solve this problem Error message: "Access to the registry key
4
1271
by: Jay | last post by:
Here lies my quandry: I have written a service that makes registry changes. The problem I run into is that, if I create the service under any account other than 'User' (i.e. 'LocalSystem', 'LocalService'), access to the registry is denied. If I create the service under the 'User' account, any time the user changes his network password (which is vigorously mandated in my workplace) he must also change it for the service.
3
12503
by: caldera | last post by:
Hi, I write a windows service. In that service I create a new subkey for registry. But service install is call CreateSubKey() the program throw an exception to the event log said that Cannot write to the registry key. What can cause to this message. Also I want to create sub key from my asp.net project. How can I authoritize to write a new for the web application for the registry. Thanks for your answers.
4
15097
by: Ashok | last post by:
Hello I need to programmatically change the permissions (ACL) on a specific registry key in a .NET app. Is there a way to do this in .NET? Thanks for the help, Ashok
2
1676
by: Daniel Bass | last post by:
I've found this article on how to get ASP.Net to read/write from the server's registry, but it got heavily critted as being something that you should not do... http://www.wwwcoder.com/main/parentid/263/site/2281/68/default.aspx what's the problem with a server side application reading data from a server
2
1241
by: Stu | last post by:
Hi, I am storing various settings for a windows service in the registry - but for some reason the windows service will not read them. Namespaces: Imports System.ServiceProcess Imports System.IO Imports System.Diagnostics
0
865
by: Mostafa Salama | last post by:
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
3
1924
by: mark.jerrom | last post by:
I'm fairly new to this Web Service game so please feel free to suggest something different if it looks like i'm completely off track! I'm trying to write an application that runs on a Pocket PC that is accessing data stored in a SQL server database on a seperate server (not on the pocket pc). This wil be deployed to lots of customers sites so I can't hard-code the location of the database in the program. I wrote a seperate little app...
3
3738
by: hisham123 | last post by:
I had windows xp 2002 service pack 2. i install vb6.0, crystal report 8.0, if i tried to access vb porjects references showing error accessing system registry could anybody give solution for this with regards hisham
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10008
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9837
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.