Click here to Skip to main content
15,894,096 members
Home / Discussions / C#
   

C#

 
JokeRe: Nuget Dependency Problem (NServiceBus) Pin
jochance15-Feb-24 2:37
jochance15-Feb-24 2:37 
GeneralRe: Nuget Dependency Problem (NServiceBus) Pin
Richard MacCutchan15-Feb-24 3:01
mveRichard MacCutchan15-Feb-24 3:01 
GeneralRe: Nuget Dependency Problem (NServiceBus) Pin
jochance15-Feb-24 12:32
jochance15-Feb-24 12:32 
GeneralRe: Nuget Dependency Problem (NServiceBus) Pin
Richard MacCutchan15-Feb-24 20:55
mveRichard MacCutchan15-Feb-24 20:55 
GeneralRe: Nuget Dependency Problem (NServiceBus) Pin
jschell15-Feb-24 11:44
jschell15-Feb-24 11:44 
GeneralRe: Nuget Dependency Problem (NServiceBus) Pin
jochance15-Feb-24 12:38
jochance15-Feb-24 12:38 
GeneralRe: Nuget Dependency Problem (NServiceBus) Pin
Pete O'Hanlon15-Feb-24 19:10
mvePete O'Hanlon15-Feb-24 19:10 
GeneralRe: Nuget Dependency Problem (NServiceBus) Pin
Richard MacCutchan15-Feb-24 20:54
mveRichard MacCutchan15-Feb-24 20:54 
GeneralRe: Nuget Dependency Problem (NServiceBus) Pin
jschell16-Feb-24 7:15
jschell16-Feb-24 7:15 
QuestionGracefully exit a .net 8 based windows service [SOLVED] Pin
Richard Andrew x6410-Feb-24 13:01
professionalRichard Andrew x6410-Feb-24 13:01 
AnswerRe: Gracefully exit a .net 8 based windows service Pin
OriginalGriff10-Feb-24 19:53
mveOriginalGriff10-Feb-24 19:53 
GeneralRe: Gracefully exit a .net 8 based windows service Pin
Richard Andrew x6411-Feb-24 4:47
professionalRichard Andrew x6411-Feb-24 4:47 
AnswerRe: Gracefully exit a .net 8 based windows service Pin
Gerry Schmitz11-Feb-24 9:03
mveGerry Schmitz11-Feb-24 9:03 
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 
Richard Andrew x64 wrote:
The registry key already exists when this code runs.
In that case, why are you using CreateSubKey rather than OpenSubKey?

CreateSubKey will attempt to create or open the key for write access. Since you're not writing to it, you should open it for read access instead.

Also note that the RegistryView is only required if your app is compiled as 32-bit and needs to access the 64-bit registry, or vice-versa.

Beyond that, you need to check the ACL on the specific registry key you're trying to open. It's possible that the system account has been denied (or has not been granted) access.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

AnswerRe: Having trouble opening a registry key Pin
Eddy Vluggen12-Feb-24 12:36
professionalEddy Vluggen12-Feb-24 12:36 
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 

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.