Can't write registry settings in a Windows Service.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I have a routine that among other things, reads and writes some simple settings to the registry. Everything works fine. I port this program to a windows service and start it and everthing works fine except it won't write any data to the registry. I can read it, but can't write it. I used .net 2003 debugger and attached to the process and when I write the key it doesn't throw an exception. I have tried having the service log in with Administrator privelages but still can't write..

Any ideas

TIA
John Hoffman
 
Hello

I had a similar problem that was solved by putting stuff in
HKEY_LOCAL_MACHINE and not HKEY_CURRENT_USER

Hope this helps

John Hoffman said:
Hello,

I have a routine that among other things, reads and writes some simple
settings to the registry. Everything works fine. I port this program to a
windows service and start it and everthing works fine except it won't write
any data to the registry. I can read it, but can't write it. I used .net
2003 debugger and attached to the process and when I write the key it
doesn't throw an exception. I have tried having the service log in with
Administrator privelages but still can't write...
 
Back
Top