Click here to Skip to main content
15,882,698 members
Home / Discussions / C#
   

C#

 
AnswerRe: Gracefully exit a .net 8 based windows service [SOLVED] Pin
jschell13-Feb-24 4:50
jschell13-Feb-24 4:50 
QuestionHaving trouble opening a registry key Pin
Richard Andrew x648-Feb-24 14:57
professionalRichard Andrew x648-Feb-24 14:57 
AnswerRe: Having trouble opening a registry key Pin
Dave Kreskowiak8-Feb-24 16:27
mveDave Kreskowiak8-Feb-24 16:27 
AnswerRe: Having trouble opening a registry key Pin
OriginalGriff8-Feb-24 20:02
mveOriginalGriff8-Feb-24 20:02 
GeneralRe: Having trouble opening a registry key Pin
jochance13-Feb-24 9:30
jochance13-Feb-24 9:30 
GeneralRe: Having trouble opening a registry key Pin
OriginalGriff13-Feb-24 19:56
mveOriginalGriff13-Feb-24 19:56 
AnswerRe: Having trouble opening a registry key Pin
Richard Deeming8-Feb-24 22:47
mveRichard Deeming8-Feb-24 22:47 
AnswerRe: Having trouble opening a registry key Pin
Eddy Vluggen12-Feb-24 12:36
professionalEddy Vluggen12-Feb-24 12:36 
Richard Andrew x64 wrote:
The registry key already exists when this code runs.
The exception doesn't complain about it not existing.

Richard Andrew x64 wrote:
The code is running under the LocalSystem account as a Windows Service.
Which is, as documented, a limited account.

Richard Andrew x64 wrote:
The initial open of the base key, HKLM apparently succeeds, but the BaseKey.Handle member is null immediately after the call to OpenBaseKey and before CreateSubKey.
That might be a hint Thumbs Up | :thumbsup:
Bastard Programmer from Hell Suspicious | :suss:
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

RantGlobal using? Pin
jschell8-Feb-24 4:42
jschell8-Feb-24 4:42 
GeneralRe: Global using? Pin
Richard Deeming8-Feb-24 5:19
mveRichard Deeming8-Feb-24 5:19 
GeneralRe: Global using? Pin
jochance13-Feb-24 9:34
jochance13-Feb-24 9:34 
QuestionHow to set up a Using..? Pin
glennPattonWork38-Feb-24 1:32
professionalglennPattonWork38-Feb-24 1:32 
AnswerRe: How to set up a Using..? Pin
Richard Andrew x648-Feb-24 1:38
professionalRichard Andrew x648-Feb-24 1:38 
GeneralRe: How to set up a Using..? Pin
glennPattonWork38-Feb-24 2:24
professionalglennPattonWork38-Feb-24 2:24 
GeneralRe: How to set up a Using..? Pin
Richard Andrew x648-Feb-24 2:33
professionalRichard Andrew x648-Feb-24 2:33 
GeneralRe: How to set up a Using..? Pin
glennPattonWork38-Feb-24 3:11
professionalglennPattonWork38-Feb-24 3:11 
AnswerRe: How to set up a Using..? Pin
Richard Deeming8-Feb-24 2:51
mveRichard Deeming8-Feb-24 2:51 
GeneralRe: How to set up a Using..? Pin
glennPattonWork38-Feb-24 3:10
professionalglennPattonWork38-Feb-24 3:10 
QuestionSystem.ServiceProcess.ServiceController.dll [SOLVED] Pin
Richard Andrew x643-Feb-24 2:38
professionalRichard Andrew x643-Feb-24 2:38 
AnswerRe: System.ServiceProcess.ServiceController.dll [SOLVED] Pin
jochance13-Feb-24 9:37
jochance13-Feb-24 9:37 
GeneralRe: System.ServiceProcess.ServiceController.dll [SOLVED] Pin
Richard Andrew x6413-Feb-24 12:16
professionalRichard Andrew x6413-Feb-24 12:16 
GeneralRe: System.ServiceProcess.ServiceController.dll [SOLVED] Pin
jochance13-Feb-24 12:46
jochance13-Feb-24 12:46 
Questionwhy cant I run powershell script from current directory Pin
Sherzaad132913251-Feb-24 22:04
Sherzaad132913251-Feb-24 22:04 
AnswerRe: why cant I run powershell script from current directory Pin
Richard Deeming1-Feb-24 22:23
mveRichard Deeming1-Feb-24 22:23 
GeneralRe: why cant I run powershell script from current directory Pin
Sherzaad132913252-Feb-24 1:39
Sherzaad132913252-Feb-24 1:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.