?
Solved

registry key

Posted on 2004-10-29
1
Medium Priority
?
173 Views
Last Modified: 2010-04-23
I am trying to access a registry key from VB.NET and webapp using the code below...

I am not sure whether it is a security issue or what but i am not able to retreive this value..



Dim rk As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\Location")
Dim objValue As Object
Dim strValue As String

If Not (rk Is Nothing) Then
  objValue = rk.GetValue("ZipCode")
       If Not (objValue Is Nothing) Then
          strValue = CType(objValue, String)
          TextBox1.Text = strValue
       End If
End If
0
Comment
Question by:Moizsaif123
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 800 total points
ID: 12454288
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…
Suggested Courses

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question