| Forum: ASP.NET |
Thema:
RegistryKey GetValue() |
Von:
G. Guest (
01.12.2003 13:46) |
Hi, I am using the following code:
RegistryKey regKey = Registry.CurrentUser;
regKey = regKey.OpenSubKey("Software\\MyApplications\\oneApplication\\InstallDir", true);
return regKey.GetValue("Dir").ToString();
Everytime I get NULL from the GetValue Method. Sometimes I get an error message: Object instance not set. Inside the registry the value for "Dir" is set to: c:\temp\test. Did anybody knows what I am making wrong?
THX
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!