?
Solved

Registry access denied (VB.net)

Posted on 2012-04-09
2
Medium Priority
?
407 Views
Last Modified: 2012-04-10
Hi ,

I have an application that write on registry.

Until Yesterday all right, today I format my PC and I install Visual Basic 2010 (express) In the past I have used only Visual Basic 2010 ultimate.

After installed windwos 7 and Visual studio I open my application and seem work but for some reasons don't write in to registry.

Here the unmodified code that until yesterday work, but after format and reintall all don't work.

//

   Dim RegistryKey As Microsoft.Win32.RegistryKey

        RegistryKey = GetRegistryKey(KeyRoot)

        Return ModSupBase.ToStr(RegistryKey.OpenSubKey(Key, Microsoft.Win32.RegistryKeyPermissionCheck.ReadWriteSubTree, Security.AccessControl.RegistryRights.FullControl).GetValue(Value))
//

There is possible that with 'Express' edition is not possible write in to registry ??

How can I solve ?
0
Comment
Question by:luca345
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 2000 total points
ID: 37826336
I think you can write registry with express version.
It may be permission related issue:
- Before formattting. Did you use the same version of Windows 7 (enterprise, home, etc) as you currently installed?
- Are you running the program as administrator user?
- Can you provide full exception details? (message and stack trace)
0
 

Author Closing Comment

by:luca345
ID: 37826473
Yes , I have already solved.

My vb after install don't rus as administrator.

Now I have changed the shortcut with run 'with administrator'

Thank you anyway !
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

770 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