Click here to Skip to main content
15,891,136 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: Post-installation problem Pin
User 17164928-Jul-08 12:07
professionalUser 17164928-Jul-08 12:07 
GeneralRe: Post-installation problem Pin
Big Daddy Farang9-Jul-08 11:58
Big Daddy Farang9-Jul-08 11:58 
GeneralRe: Post-installation problem Pin
User 17164929-Jul-08 12:49
professionalUser 17164929-Jul-08 12:49 
AnswerRe: Post-installation problem Pin
Mike Dimmick9-Jul-08 6:20
Mike Dimmick9-Jul-08 6:20 
GeneralRe: Post-installation problem Pin
Big Daddy Farang9-Jul-08 6:47
Big Daddy Farang9-Jul-08 6:47 
GeneralRe: Post-installation problem Pin
Michael Dunn22-Jul-08 10:53
sitebuilderMichael Dunn22-Jul-08 10:53 
QuestionMSAgent Pin
Srinivas Aditya7-Jul-08 19:25
Srinivas Aditya7-Jul-08 19:25 
QuestionC# Registry path with spaces Pin
Planker3-Jul-08 3:39
Planker3-Jul-08 3:39 
I am writing a C# program to return the permissions of a reg key passed in to the program. i have the main registry part working with one exception when I try to read a key that has a space in the path I get a null exception that is not caught by my error handleing.

issue 1:

RegistryKey
regkey = Registry.LocalMachine;
regKey = regKey.OpenSubKey("Software");
regKey = regkey.openSubKey("Adobe");
regkey = regKey.OpenSubKey("Adobe Reader"); /* if this line is commented out everything works, this line causes regKey to return Null */
try
{
RegistrySecurity regSecurity = regKey.GetAccessControl(); //NullReferenceException
}
catch (argumentNullException e)
{
Console.WriteLine("Error", e);
}


Issue 2:
why does my try/catch not catch the error?

Thanks
Rob
AnswerRe: C# Registry path with spaces Pin
Sebastian Schneider6-Jul-08 22:31
Sebastian Schneider6-Jul-08 22:31 
Questionregsvr32 in Vista Pin
swjam2-Jul-08 1:48
swjam2-Jul-08 1:48 
AnswerRe: regsvr32 in Vista Pin
Luc Pattyn2-Jul-08 3:06
sitebuilderLuc Pattyn2-Jul-08 3:06 
AnswerRe: regsvr32 in Vista Pin
Paul Conrad2-Jul-08 20:26
professionalPaul Conrad2-Jul-08 20:26 
QuestionSuppressing "Interact with desktop" property of service Pin
rana741-Jul-08 0:24
rana741-Jul-08 0:24 
AnswerRe: Suppressing "Interact with desktop" property of service Pin
Mike Dimmick9-Jul-08 6:24
Mike Dimmick9-Jul-08 6:24 
GeneralRe: Suppressing "Interact with desktop" property of service Pin
rana749-Jul-08 15:17
rana749-Jul-08 15:17 
QuestionProblems reading USER.DAT file in the regedit (Win95) Pin
Joan M30-Jun-08 10:13
professionalJoan M30-Jun-08 10:13 
AnswerRe: Problems reading USER.DAT file in the regedit (Win95) Pin
Joan M30-Jun-08 10:40
professionalJoan M30-Jun-08 10:40 
Questionstopping the flash memory Pin
costavo26-Jun-08 23:17
costavo26-Jun-08 23:17 
AnswerRe: stopping the flash memory Pin
Swagata Paul28-Jun-08 1:03
Swagata Paul28-Jun-08 1:03 
AnswerRe: stopping the flash memory Pin
Hesbon Ongira1-Jul-08 0:01
Hesbon Ongira1-Jul-08 0:01 
AnswerRe: stopping the flash memory Pin
cocoonwls6-Jul-08 18:15
cocoonwls6-Jul-08 18:15 
Questiontask monitoring Pin
sanjayvenkat24-Jun-08 1:10
sanjayvenkat24-Jun-08 1:10 
AnswerRe: task monitoring Pin
Paul Conrad2-Jul-08 20:27
professionalPaul Conrad2-Jul-08 20:27 
QuestionSystem User rights removed in Windows xp Pin
waseem khan24-Jun-08 0:34
waseem khan24-Jun-08 0:34 
AnswerRe: System User rights removed in Windows xp Pin
Paul Conrad2-Jul-08 20:28
professionalPaul Conrad2-Jul-08 20:28 

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.