[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Registry access denied (VB.net)

Posted on 2012-04-09
2
Medium Priority
?
415 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

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

650 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