Vba error accessing the system registry

as soon as i want to include a component or Referrence to vb6 Project it give me this error msg : error accessing the mechanism registry just how i can settle that ???sry again


Here is a couple of options...

You watching: Vba error accessing the system registry

This is because it runs a business which creates regisattempt secrets under the SYSTEM account.

When VB tries to enumeprice the keys under HKCRTypeLib it fails and gives the error bereason the user running VB6.EXE (even if it set to run as administrator) does not automatically have READ civil liberties to the vital. At that allude you acquire the "Error accessing the device registry" dialog.

To workaround/fix this:

Downpack Procmon and PsExec from sysinternals.

Run Procmon and also include a "ProcessName" filter with VB6.EXE as the procedure name.

Then Select Project->References. And the error dialog should pop up.

Switch to procmon and scroll to the finish of the occasions list - you"re searching for the last "ACCESS_DENIED" message for opening a registry crucial under HKCRTypeLib.

See more: " The Capability Of Your Network Adapter Does Not Match The, Easy Wifi Troubleshooting Guide Tips And Fixes

Thats the first key you must adjust permissions on - so you"ll have to run regedit in the exact same account conmessage that the keys were created in - the SYSTEM account. to carry out this install psexec on the home windows PATH somewhere then run:

psexec -i -d -s c:windows egedit.exe

(obviously readjust the route if yours is different)

this will certainly run regmodify through the SYSTEM account.

You have the right to verify that also the administrator account does NOT have actually permission to edit these secrets by running regedit with a Start->Run dialog as this elevates the priv" level to administrator.

Find the essential you determined in action 4 - best click it and pick Permissions.

Find the present logged on user that you use to run VB6 through and also add them through full regulate to the permissions list.

Repeat steps 3-7 because there might be even more secrets that exhilittle this behaviour, till the Project->References dialog shows up in VB6 without error.

You could also open up the .vbp in notepad to watch the references if you"re stuck and also dont have time to perform the over.....

See more: Pci Express Root Port Error

Select the Microsoft Visual Basic 6.0 shortreduced from the Start food selection and right-click on it. Select Properties, and the home sheet for the shortreduced will certainly be shown. Next, click on the Compatibility tab. It is recommfinished that you make the complying with changes:1. Enable compatibility mode and also pick Windows XP (Service Pack 2) .....2. Check the "Disable visual themes" option .....3. Check the "Disable desktop composition" choice.....4. Check the "Run this program as an administrator" option

Click on OK to save the changes. When you run Visual Basic, a User Account Control (UAC) dialog will be presented, asking you to confirm that you wish to execute the regimen. This is because it"s now running via elevated privileges. You may additionally obtain a message that the color system has actually been readjusted to Windows Vista Basic. The Aero interchallenge will certainly be temporarily disabled till you cshed the IDE, which will certainly deal with the performance issues with the create designer.