|
-
April 19th, 2011, 11:04 PM
#1
Webservice can't call Registry GetValue function?
I use a webservice in order to get and return Registry value.
For explicit more, example follow:
RegistryKey regKey = Registry.CurrentUser.OpenSubKey("Software\\Yahoo\\Pager");
string sUserName = regKey.GetValue("Yahoo! User ID").ToString();
regKey.Close();
I built it by Visual Studio 2005. Debugging-(F5), I can get 'sUserName' variable easily, but I can't get it on a webservice, it throws exception: "Object reference not set to an instance of an object"
Experts can help me in this regard?
Thanks so much in advance!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|