Click here to Skip to main content
15,889,931 members
Home / Discussions / C#
   

C#

 
GeneralRe: WMI causing Access is denied Pin
Dave Kreskowiak16-Jan-13 4:55
mveDave Kreskowiak16-Jan-13 4:55 
GeneralRe: WMI causing Access is denied Pin
Dave Kreskowiak16-Jan-13 4:57
mveDave Kreskowiak16-Jan-13 4:57 
QuestionProblem getting data from a stored procedure (Oracle) Pin
GDavy16-Jan-13 3:11
GDavy16-Jan-13 3:11 
AnswerRe: Problem getting data from a stored procedure (Oracle) Pin
micke.andersson28-Jan-13 3:39
micke.andersson28-Jan-13 3:39 
QuestionC#, Windows 8 UAC, and registry edit Pin
clover4leaves16-Jan-13 2:46
clover4leaves16-Jan-13 2:46 
AnswerRe: C#, Windows 8 UAC, and registry edit Pin
jschell16-Jan-13 9:19
jschell16-Jan-13 9:19 
GeneralRe: C#, Windows 8 UAC, and registry edit Pin
clover4leaves16-Jan-13 14:00
clover4leaves16-Jan-13 14:00 
GeneralRe: C#, Windows 8 UAC, and registry edit Pin
Jonathan C Dickinson17-Jan-13 2:00
Jonathan C Dickinson17-Jan-13 2:00 
You might be trying to modify TrustedInstaller keys. TrustedInstaller is a special user that has power beyond that of Administrator(s). You will need to take ownership of the key in order to work around that (completely ruining the security on your user's machine). If you need to change keys owned by TrustedInstaller you are doing something very very wrong.

If you are not trying to modify TrustedInstaller-owned keys you probably need to indicate which permissions you want when you open the key:

using (var key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Foo\\Bar", RegistryKeyPermissionCheck.ReadWriteSubTree))
{
}
// .. or ..
using (var key = Registry.LocalMachine.CreateSubKey("SOFTWARE\\Foo\\Bar", RegistryKeyPermissionCheck.ReadWriteSubTree))
{
}

He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Chinese Proverb]

Jonathan C Dickinson (C# Software Engineer)

GeneralRe: C#, Windows 8 UAC, and registry edit Pin
clover4leaves17-Jan-13 4:09
clover4leaves17-Jan-13 4:09 
QuestionCombo box selection event Pin
Trishal15-Jan-13 19:59
Trishal15-Jan-13 19:59 
AnswerRe: Combo box selection event Pin
Abhinav S15-Jan-13 21:38
Abhinav S15-Jan-13 21:38 
AnswerRe: Combo box selection event Pin
Trishal15-Jan-13 22:37
Trishal15-Jan-13 22:37 
GeneralRe: Combo box selection event Pin
Richard MacCutchan15-Jan-13 22:50
mveRichard MacCutchan15-Jan-13 22:50 
GeneralRe: Combo box selection event Pin
Trishal15-Jan-13 23:22
Trishal15-Jan-13 23:22 
GeneralRe: Combo box selection event Pin
Richard MacCutchan15-Jan-13 23:35
mveRichard MacCutchan15-Jan-13 23:35 
GeneralRe: Combo box selection event Pin
masalahi22-Jan-13 11:24
masalahi22-Jan-13 11:24 
GeneralRe: Combo box selection event Pin
V.15-Jan-13 23:00
professionalV.15-Jan-13 23:00 
QuestionReading metadata from exported types with .net framework 3.5 Pin
Danzy8315-Jan-13 12:18
Danzy8315-Jan-13 12:18 
Answer[Solved] Reading metadata from exported types with .net framework 3.5 Pin
Danzy8315-Jan-13 12:52
Danzy8315-Jan-13 12:52 
QuestionNLog question Pin
vanikanc15-Jan-13 10:16
vanikanc15-Jan-13 10:16 
AnswerRe: NLog question Pin
Jibesh15-Jan-13 11:23
professionalJibesh15-Jan-13 11:23 
AnswerRe: NLog question Pin
jschell16-Jan-13 9:23
jschell16-Jan-13 9:23 
GeneralRe: NLog question Pin
vanikanc16-Jan-13 9:34
vanikanc16-Jan-13 9:34 
GeneralRe: NLog question Pin
jschell17-Jan-13 8:13
jschell17-Jan-13 8:13 
QuestionAdd a dll reference from another server. Pin
vanikanc15-Jan-13 9:55
vanikanc15-Jan-13 9:55 

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.