Re: Registry key cannot write..

From: Daniel Bass (DanielBass)
Date: 08/16/04


Date: Mon, 16 Aug 2004 09:43:40 +0100

Caldera,

You start by mentioning a Windows Service, but then make a reference to a
ASP.Net project, which would indicate it's actually a Web Service you're
talking about?

For a windows service, make sure it's running as local admin, or that the
user it is running as has rights to edit the registry.

For a web service, it's not advised you store any data in the server
registry. Rather put it in the project global configuration file.

Hope that helps.

Dan

"caldera" <caldera@cc.com> wrote in message
news:OG6KWPugEHA.596@TK2MSFTNGP11.phx.gbl...
> 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.
>
>



Relevant Pages

  • Re: Registry key cannot write..
    ... Actually I want to use windows service for scheduling. ... So I have to add a registry key from the asp.net page. ... I can do this from the web service but in this case thread of the web service ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Registry key cannot write..
    ... > Actually I want to use windows service for scheduling. ... So I have to add a registry key from the asp.net page. ... I can do this from the web service but in this case thread of the web service ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Startup key
    ... Windows has a few possibillities to autostart a program ... your application so that the registry settings will be ... using VB.NET a windows service that starts ... > In which registry key I have to write the application path? ...
    (microsoft.public.vb.winapi.networks)
  • Re: Startup key
    ... Windows has a few possibillities to autostart a program ... your application so that the registry settings will be ... using VB.NET a windows service that starts ... > In which registry key I have to write the application path? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Startup key
    ... Windows has a few possibillities to autostart a program ... your application so that the registry settings will be ... using VB.NET a windows service that starts ... > In which registry key I have to write the application path? ...
    (microsoft.public.vb.general.discussion)