windows service unable to read values from registry

I wrote a windows service which reads values from the registry and i am unable to read values from the registry in this context and i had a similar issue one time and i remember that importing Imports Microsoft.Win32 solved the issue. But for some reason this time its not. I am running this service on a 64 bit server/development machine

 strFromTimeRange = Registry.GetValue(keyName, "FromTimeRange", "")

where there is a value in the keyname in the registry but i am getting a nothing value.
welcome 123Asked:
Who is Participating?
 
CodeCruiserCommented:
>where there is a value in the keyname in the registry but i am getting a nothing value

Is the value against the current user or local machine?

Why note use a better way of managing configuration (config files, databases etc)?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.