Error Accessing System Registry

Posted on 2004-09-22
Last Modified: 2008-01-09
When I try to set references in VB (Project - References), I get an error "Error accessing the system registry."
How can I resolve this?

Question by:tawandat
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

Accepted Solution

mladenovicz earned 500 total points
ID: 12121074
LVL 17

Expert Comment

ID: 12121421
Further to  mladenovicz suggestion....
You must use regedt32 to be able to set registry security. If you are having a problem developing then you need read/write permissions.  When running the user nees read permissions. The normal and more user-friendly regedit does not show the security options.

Another good way of resolving strange error conditions is to use filemon.exe (a free download). Filemon shows access to any file, including registry, as sometimes security issues are not always registry issues.
LVL 26

Expert Comment

ID: 12121926
You can try to use regclean to clean the registry

Expert Comment

ID: 12122666
You should be given permissions by an administrator using the reged32.exe (Registry Administration Tool)
Better to give read permissions for all keys vix HK_LOCAL_MACHINE etc....

Contact a administrator and this problem will be resolved.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

623 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