Vb6 error accessing system registry

Hello there, my VB 6 (SP6) model ran smoothly until this morning when I suddenly got the message "Error accessing the system registry". When I tried to run my model on another computer, I got the same error message. So the sudden appearance of this problem seems to be related to my model (rather than the VB 6 (SP6) installation on my computers that run on Vista). Would you have any idea how to proceed? Thank you for your help.
  • Home
  • VBForums
  • Visual Basic
  • Visual Basic 6 and Earlier
  • [RESOLVED] Sudden «Error accessing the system registry»

  1. Nov 2nd, 2008, 09:58 AM


    #1

    FSPH is offline

    Thread Starter


    Member


    Resolved [RESOLVED] Sudden «Error accessing the system registry»

    Hello there,

    my VB 6 (SP6) model ran smoothly until this morning when I suddenly got the message «Error accessing the system registry». When I tried to run my model on another computer, I got the same error message. So the sudden appearance of this problem seems to be related to my model (rather than the VB 6 (SP6) installation on my computers that run on Vista).

    Would you have any idea how to proceed?

    Thank you for your help.


  2. Nov 2nd, 2008, 06:30 PM


    #2

    Darkbob is offline


    Hyperactive Member


    Re: Sudden «Error accessing the system registry»

    I have that happen under Vista now and again. I just close the IDE then open it back up again. It usually works on the 2nd try. No idea why.

    —DB


  3. Nov 2nd, 2008, 06:40 PM


    #3

    FSPH is offline

    Thread Starter


    Member


    Re: Sudden «Error accessing the system registry»

    I did that this morning without any effect. In fact, I shut down the computer and re-tried it right afterwards, again without any success.

    A few hours later I restarted the computer again, and then it worked. My problem may have had to do with the time switch last night (in Canada) from summer to regular time. At least that’s the only thing that changed to my knowledge.


  4. Dec 31st, 2008, 08:31 AM


    #4

    danne is offline


    New Member


    Re: [RESOLVED] Sudden «Error accessing the system registry»

    Hi there,
    You may try the following,

    Select the Microsoft Visual Basic 6.0 shortcut from the Start menu and right-click on it. Select Properties, and the property sheet for the shortcut will be displayed. Next, click on the Compatibility tab. It is recommended that you make the following changes:
    1. Enable compatibility mode and select Windows XP (Service Pack 2) …..
    2. Check the «Disable visual themes» option …..
    3. Check the «Disable desktop composition» option…..
    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 displayed, asking you to confirm that you wish to execute the program. This is because it’s now running with elevated privileges. You may also get a message that the color scheme has been changed to Windows Vista Basic. The Aero interface will be temporarily disabled until you close the IDE, which will resolve the performance issues with the form designer.

    Regards


  5. Feb 12th, 2009, 05:07 AM


    #5

    athar_anis is offline


    New Member


    Re: [RESOLVED] Sudden «Error accessing the system registry»

    hi
    Try performing these two tasks..

    1) Instead of installing vb6 again, try reinstalling Crystal Reports.
    2) Click Start, Programs, Microsoft Visual Basic 6 and Right Click The Visual Basic 6 Shortcut Icon. A Menu Will be shown.
    Now Click Run As…

    A Pop up box will appear asking you which User account do you want to use to run Visual Basic.
    Keep it to ‘Current User’ and remove the check from ‘Protect My Computer and data from unauthorized program activity’

    This should help. Try this out…
    Regards
    Athar Anis


  6. Nov 6th, 2009, 02:15 PM


    #6

    Jelly J is offline


    New Member


    Re: [RESOLVED] Sudden «Error accessing the system registry»

    I know this is an old post — but I thought it deserved a revival…

    Okay new to the board, and I normally do not comment on programming sites — I just bear it all on my own lol …BUT I’ve been battling with this error on and off for the past year. For the most part, I’ve figured out what to do and have it resolved…however, it just happened again — and I couldn’t for the life of me remember what I did last time to sort it out.

    I just tried the below, and from what I do remember of what I did last time — this was simplier and faster, and it worked beautifully! There’s at least hald a dozen ‘fixes’ out there for this but no one responds with what actually works or if someone else tried it…So danne, fantastic post — It works! YOU are a genious.
    Now I have no valid excuse for delaying the next version of this app…
    back to coding

    Thanks again.

    Quote Originally Posted by danne
    View Post

    Hi there,
    You may try the following,

    Select the Microsoft Visual Basic 6.0 shortcut from the Start menu and right-click on it. Select Properties, and the property sheet for the shortcut will be displayed. Next, click on the Compatibility tab. It is recommended that you make the following changes:
    1. Enable compatibility mode and select Windows XP (Service Pack 2) …..
    2. Check the «Disable visual themes» option …..
    3. Check the «Disable desktop composition» option…..
    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 displayed, asking you to confirm that you wish to execute the program. This is because it’s now running with elevated privileges. You may also get a message that the color scheme has been changed to Windows Vista Basic. The Aero interface will be temporarily disabled until you close the IDE, which will resolve the performance issues with the form designer.

    Regards


  7. Nov 11th, 2009, 09:52 AM


    #7

    Smile Re: [RESOLVED] Sudden «Error accessing the system registry»

    Another update:

    iTunes (and other apps yet to come) may also cause this problem in Win7.

    This is because it runs a service which creates registry keys under the SYSTEM account.

    When VB tries to enumerate the keys under HKCRTypeLib it fails and gives the error because the user running VB6.EXE (even if it set to run as administrator) does not automatically have READ rights to the key. At that point you get the «Error accessing the system registry» dialog.

    To workaround/fix this:

    1. Download Procmon and PsExec from sysinternals.

    2. Run Procmon and add a «ProcessName» filter with VB6.EXE as the process name.

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

    4. Switch to procmon and scroll to the end of the events list — you’re looking for the last «ACCESS_DENIED» message for opening a registry key under HKCRTypeLib.

    5. Thats the first key you need to change permissions on — so you’ll need to run regedit in the same account context that the keys were created in — the SYSTEM account. to do this install psexec on the windows PATH somewhere then run:

    psexec -i -d -s c:windowsregedit.exe

    (obviously change the path if yours is different)

    this will run regedit through the SYSTEM account.

    *You can verify that even the administrator account does NOT have permission to edit these keys by running regedit through a Start->Run dialog as this elevates the priv’ level to administrator.*

    6. Find the key you identified in step 4 — right click it and select Permissions.

    7. Find the current logged on user that you use to run VB6 with and add them with full control to the permissions list.

    8. Repeat steps 3-7 because there may be more keys that exhibit this behaviour, until the Project->References dialog appears in VB6 without error.

    You could also open the .vbp in notepad to see the references if you’re stuck and dont have time to do the above…..

    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]


  8. Feb 1st, 2013, 08:27 AM


    #8

    Fredejohnmark is offline


    Registered User


    Re: [RESOLVED] Sudden «Error accessing the system registry»

    There is no need of installing other software like Crystal Reports or changing the registry, the only simple and permanent solution is to go to start menu then right click Microsoft Visual Basic 6 then select properties and click Compatibility from the dialog box that appears then check «Run this program as an administrator» under privilege level……… Hope that works. For more visit www.fredomondi.webs.com


  9. Mar 11th, 2013, 08:40 AM


    #9

    JerryEng is offline


    New Member


    Re: [RESOLVED] Sudden «Error accessing the system registry»

    Thanks. Been running into the same issue. Had been manually registering OCX’s to clear the problem until today. Checked the «Run this program as an administrator» option to get past the error.


  10. Sep 22nd, 2017, 07:45 AM


    #10

    GrayWag is offline


    New Member


    Resolved Re: [RESOLVED] Sudden «Error accessing the system registry»

    Quote Originally Posted by crispin
    View Post

    Another update:

    iTunes (and other apps yet to come) may also cause this problem in Win7.

    This is because it runs a service which creates registry keys under the SYSTEM account.

    When VB tries to enumerate the keys under HKCRTypeLib it fails and gives the error because the user running VB6.EXE (even if it set to run as administrator) does not automatically have READ rights to the key. At that point you get the «Error accessing the system registry» dialog.

    To workaround/fix this:

    1. Download Procmon and PsExec from sysinternals.

    2. Run Procmon and add a «ProcessName» filter with VB6.EXE as the process name.

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

    4. Switch to procmon and scroll to the end of the events list — you’re looking for the last «ACCESS_DENIED» message for opening a registry key under HKCRTypeLib.

    5. Thats the first key you need to change permissions on — so you’ll need to run regedit in the same account context that the keys were created in — the SYSTEM account. to do this install psexec on the windows PATH somewhere then run:

    psexec -i -d -s c:windowsregedit.exe

    (obviously change the path if yours is different)

    this will run regedit through the SYSTEM account.

    *You can verify that even the administrator account does NOT have permission to edit these keys by running regedit through a Start->Run dialog as this elevates the priv’ level to administrator.*

    6. Find the key you identified in step 4 — right click it and select Permissions.

    7. Find the current logged on user that you use to run VB6 with and add them with full control to the permissions list.

    8. Repeat steps 3-7 because there may be more keys that exhibit this behaviour, until the Project->References dialog appears in VB6 without error.

    You could also open the .vbp in notepad to see the references if you’re stuck and dont have time to do the above…..

    Crispin — Yours is the only solution that worked. Thank you.


  11. Mar 15th, 2019, 08:26 AM


    #11

    fabiops is offline


    New Member


    Re: [RESOLVED] Sudden «Error accessing the system registry»

    This worked for me on Windows 7.

    Thanks !

    Quote Originally Posted by danne
    View Post

    Hi there,
    You may try the following,

    Select the Microsoft Visual Basic 6.0 shortcut from the Start menu and right-click on it. Select Properties, and the property sheet for the shortcut will be displayed. Next, click on the Compatibility tab. It is recommended that you make the following changes:
    1. Enable compatibility mode and select Windows XP (Service Pack 2) …..
    2. Check the «Disable visual themes» option …..
    3. Check the «Disable desktop composition» option…..
    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 displayed, asking you to confirm that you wish to execute the program. This is because it’s now running with elevated privileges. You may also get a message that the color scheme has been changed to Windows Vista Basic. The Aero interface will be temporarily disabled until you close the IDE, which will resolve the performance issues with the form designer.

    Regards


  12. May 22nd, 2021, 07:43 PM


    #12

    sneakers is offline


    Addicted Member


    Re: [RESOLVED] Sudden «Error accessing the system registry»

    I went to Start, Microsoft Visual Studio then right clicked on the VB6 shortcut and selected run as administrator. Now it works. Thanks.


  13. Aug 31st, 2022, 12:48 PM


    #13

    JuanjoHxq is offline


    New Member


    Re: [RESOLVED] Sudden «Error accessing the system registry»

    Muchas gracias Crispin por tomarte el tiempo de explicarlo, me quedo muy claro, sigo soportando un proyecto de Visual Basic 6.0 y tu ayuda fue de mucha utilidad.

    Gracias de nuevo y saludos desde M�xico


  • Home
  • VBForums
  • Visual Basic
  • Visual Basic 6 and Earlier
  • [RESOLVED] Sudden «Error accessing the system registry»


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off

Forum Rules


Click Here to Expand Forum to Full Width

Member Avatar

10 Years Ago

when i want to add a component or Referrence to vb6 Project it give me this error msg : error accessing the system registry how i can fix that ???
sry again

Member Avatar

10 Years Ago

Here is a few solutions…

This is because it runs a service which creates registry keys under the SYSTEM account.

When VB tries to enumerate the keys under HKCRTypeLib it fails and gives the error because the user running VB6.EXE (even if it set to run as administrator) does not automatically have READ rights to the key. At that point you get the «Error accessing the system registry» dialog.

To workaround/fix this:

  1. Download Procmon and PsExec from sysinternals.

  2. Run Procmon and add a «ProcessName» filter with VB6.EXE as the process name.

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

  4. Switch to procmon and scroll to the end of the events list — you’re looking for the last «ACCESS_DENIED» message for opening a registry key under HKCRTypeLib.

  5. Thats the first key you need to change permissions on — so you’ll need to run regedit in the same account context that the keys were created in — the SYSTEM account. to do this install psexec on the windows PATH somewhere then run:

psexec -i -d -s c:windowsregedit.exe

(obviously change the path if yours is different)

this will run regedit through the SYSTEM account.

You can verify that even the administrator account does NOT have permission to edit these keys by running regedit through a Start->Run dialog as this elevates the priv’ level to administrator.

  1. Find the key you identified in step 4 — right click it and select Permissions.

  2. Find the current logged on user that you use to run VB6 with and add them with full control to the permissions list.

  3. Repeat steps 3-7 because there may be more keys that exhibit this behaviour, until the Project->References dialog appears in VB6 without error.

You could also open the .vbp in notepad to see the references if you’re stuck and dont have time to do the above…..

<—— OR ——>

Select the Microsoft Visual Basic 6.0 shortcut from the Start menu and right-click on it. Select Properties, and the property sheet for the shortcut will be displayed. Next, click on the Compatibility tab. It is recommended that you make the following changes:
1. Enable compatibility mode and select Windows XP (Service Pack 2) …..
2. Check the «Disable visual themes» option …..
3. Check the «Disable desktop composition» option…..
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 displayed, asking you to confirm that you wish to execute the program. This is because it’s now running with elevated privileges. You may also get a message that the color scheme has been changed to Windows Vista Basic. The Aero interface will be temporarily disabled until you close the IDE, which will resolve the performance issues with the form designer.


Reply to this topic

Be a part of the DaniWeb community

We’re a friendly, industry-focused community of developers, IT pros, digital marketers,
and technology enthusiasts meeting, networking, learning, and sharing knowledge.

Содержание

  1. Error accessing system registry vba
  2. Thread: [RESOLVED] Sudden «Error accessing the system registry»
  3. [RESOLVED] Sudden «Error accessing the system registry»
  4. Re: Sudden «Error accessing the system registry»
  5. Re: Sudden «Error accessing the system registry»
  6. Re: [RESOLVED] Sudden «Error accessing the system registry»
  7. Re: [RESOLVED] Sudden «Error accessing the system registry»
  8. Re: [RESOLVED] Sudden «Error accessing the system registry»
  9. Re: [RESOLVED] Sudden «Error accessing the system registry»
  10. error accessing the system registry
  11. error accessing the system registry
  12. Re: error accessing the system registry
  13. Re: error accessing the system registry
  14. Re: error accessing the system registry
  15. Re: error accessing the system registry
  16. Re: error accessing the system registry
  17. Re: error accessing the system registry
  18. Re: error accessing the system registry
  19. Re: error accessing the system registry
  20. Error accessing Project > References window?
  21. 13 Answers 13

Error accessing system registry vba

As the resident Excel expert at work, I have the privilege of being landed with some weird and wonderful errors which have to be fixed. Last week I developed an Excel spreadsheet for a user but when he went to test it he said he was getting an error when he tried to check the project references. Specifically when he went to Tools > References in the VBA IDE he got the message ‘Error accessing the system registry’:

This error had nothing to do with the spreadsheet I’d built for him: obviously he hadn’t tried to reach the project references menu for a little while. When you try to pull up the project references, Excel goes off and reads a bunch of keys from the registry and this error occurs when the you don’t have permission to read one or more of those keys. But how do you figure out which keys are causing the problem?

The answer is to run Process Monitor (which must be run under an admin account) because it will show you every key which Excel tries to read and whether it did so successfully. ProcMon has saved my bacon several times over the years so it’s worth a look if you haven’t come across it before.

It’s extremely easy to use: simply add a Process Name filter for EXCEL.EXE, clear the display and then, with Excel running under the user’s account, go to Tools > References and watch ProcMon burst into a flurry of activity. Once it’s calmed down you can stop capturing events and examine the output. You’re interested in any results which are ACCESS DENIED so add another filter on the Result column. In this case I have one key, HKCRTypeLib<57a0e746-3863-4d20-a811-950c84f1db9b>, which is causing the problem:

A quick Google search on that key reveals it pertains to a Flash Player update which has affected a number of people. The VBA IDE error message will go away once the admin uses the Registry Editor to grant the user read access to the access denied keys listed by Process Monitor.

Источник

Thread: [RESOLVED] Sudden «Error accessing the system registry»

Thread Tools
Display

[RESOLVED] Sudden «Error accessing the system registry»

my VB 6 (SP6) model ran smoothly until this morning when I suddenly got the message «Error accessing the system registry». When I tried to run my model on another computer, I got the same error message. So the sudden appearance of this problem seems to be related to my model (rather than the VB 6 (SP6) installation on my computers that run on Vista).

Would you have any idea how to proceed?

Thank you for your help.

Re: Sudden «Error accessing the system registry»

I have that happen under Vista now and again. I just close the IDE then open it back up again. It usually works on the 2nd try. No idea why.

Re: Sudden «Error accessing the system registry»

I did that this morning without any effect. In fact, I shut down the computer and re-tried it right afterwards, again without any success.

A few hours later I restarted the computer again, and then it worked. My problem may have had to do with the time switch last night (in Canada) from summer to regular time. At least that’s the only thing that changed to my knowledge.

Re: [RESOLVED] Sudden «Error accessing the system registry»

Hi there,
You may try the following,

Select the Microsoft Visual Basic 6.0 shortcut from the Start menu and right-click on it. Select Properties, and the property sheet for the shortcut will be displayed. Next, click on the Compatibility tab. It is recommended that you make the following changes:
1. Enable compatibility mode and select Windows XP (Service Pack 2) .
2. Check the «Disable visual themes» option .
3. Check the «Disable desktop composition» option.
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 displayed, asking you to confirm that you wish to execute the program. This is because it’s now running with elevated privileges. You may also get a message that the color scheme has been changed to Windows Vista Basic. The Aero interface will be temporarily disabled until you close the IDE, which will resolve the performance issues with the form designer.

Re: [RESOLVED] Sudden «Error accessing the system registry»

1) Instead of installing vb6 again, try reinstalling Crystal Reports.
2) Click Start, Programs, Microsoft Visual Basic 6 and Right Click The Visual Basic 6 Shortcut Icon. A Menu Will be shown.
Now Click Run As.

A Pop up box will appear asking you which User account do you want to use to run Visual Basic.
Keep it to ‘Current User’ and remove the check from ‘Protect My Computer and data from unauthorized program activity’

This should help. Try this out.
Regards
Athar Anis

Re: [RESOLVED] Sudden «Error accessing the system registry»

I know this is an old post — but I thought it deserved a revival.

Okay new to the board, and I normally do not comment on programming sites — I just bear it all on my own lol . BUT I’ve been battling with this error on and off for the past year. For the most part, I’ve figured out what to do and have it resolved. however, it just happened again — and I couldn’t for the life of me remember what I did last time to sort it out.

I just tried the below, and from what I do remember of what I did last time — this was simplier and faster, and it worked beautifully! There’s at least hald a dozen ‘fixes’ out there for this but no one responds with what actually works or if someone else tried it. So danne, fantastic post — It works! YOU are a genious.
Now I have no valid excuse for delaying the next version of this app.
back to coding

Hi there,
You may try the following,

Select the Microsoft Visual Basic 6.0 shortcut from the Start menu and right-click on it. Select Properties, and the property sheet for the shortcut will be displayed. Next, click on the Compatibility tab. It is recommended that you make the following changes:
1. Enable compatibility mode and select Windows XP (Service Pack 2) .
2. Check the «Disable visual themes» option .
3. Check the «Disable desktop composition» option.
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 displayed, asking you to confirm that you wish to execute the program. This is because it’s now running with elevated privileges. You may also get a message that the color scheme has been changed to Windows Vista Basic. The Aero interface will be temporarily disabled until you close the IDE, which will resolve the performance issues with the form designer.

Re: [RESOLVED] Sudden «Error accessing the system registry»

iTunes (and other apps yet to come) may also cause this problem in Win7.

This is because it runs a service which creates registry keys under the SYSTEM account.

When VB tries to enumerate the keys under HKCRTypeLib it fails and gives the error because the user running VB6.EXE (even if it set to run as administrator) does not automatically have READ rights to the key. At that point you get the «Error accessing the system registry» dialog.

To workaround/fix this:

1. Download Procmon and PsExec from sysinternals.

2. Run Procmon and add a «ProcessName» filter with VB6.EXE as the process name.

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

4. Switch to procmon and scroll to the end of the events list — you’re looking for the last «ACCESS_DENIED» message for opening a registry key under HKCRTypeLib.

5. Thats the first key you need to change permissions on — so you’ll need to run regedit in the same account context that the keys were created in — the SYSTEM account. to do this install psexec on the windows PATH somewhere then run:

psexec -i -d -s c:windowsregedit.exe

(obviously change the path if yours is different)

this will run regedit through the SYSTEM account.

*You can verify that even the administrator account does NOT have permission to edit these keys by running regedit through a Start->Run dialog as this elevates the priv’ level to administrator.*

6. Find the key you identified in step 4 — right click it and select Permissions.

7. Find the current logged on user that you use to run VB6 with and add them with full control to the permissions list.

8. Repeat steps 3-7 because there may be more keys that exhibit this behaviour, until the Project->References dialog appears in VB6 without error.

You could also open the .vbp in notepad to see the references if you’re stuck and dont have time to do the above.

Источник

error accessing the system registry

LinkBack
Thread Tools
Rate This Thread
Display

error accessing the system registry

Hello everyone,
I have created a program for everyone at my work to use. I went to everyone’s desk to add the necessary reference libraries.
I have one computer that when i click tools>reference I get the following error: «error accessing the system registry».
Can someone please explain why this is? I was able to do it on 16 other computers.
Thanks for any help.

Re: error accessing the system registry

This looks like the type of issue that may require a repair of office to fix.

One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

Re: error accessing the system registry

So go to programs and features >Microsoft Office and select repair?

Re: error accessing the system registry

Yes, that will initiate the repair. Good luck!

Re: error accessing the system registry

dflak,
Ok, so I tried this but still get the same error. any other ideas?
Thanks

Re: error accessing the system registry

Would the fact that every computer has different operating systems? (windows 7, XP, 8.1).
Maybe each computer has different version of excel?? Would that matter?
Thanks

Re: error accessing the system registry

Could be they dont have proper permissions to read/view/write the registry.

Can you open regedit on their computer manually?

You could try and have someone with an admin account run repair for all users on the machine.

Alternatively, you could write your code using late binding instead so you dont need to reference the libraries (unless they are 3rd party and you must reference them for some reason).

EDIT: Versions matter overall yes. Your code may need to reference different versions of Excel and/or different versions of the reference. VBA isnt one size fits all. Depending on the complexity of your code you may even need to consider 32bit machines/Office vs 64bit machines/Office.

Re: error accessing the system registry

Zer0cool,
Thanks for the reply.
Yes i can open regedit on the computers.

Re: error accessing the system registry

I don’t think that the version of Excel or even the operating system is the issue since you get the error as soon as you select Tools -> Reference. Microsoft is fond of «depreciating» things meaning that it no longer recognizes old code, so if the error happened when trying to select or use something that has been depreciated, then the version of Microsoft could be a factor, but that is not what is happening.

The next step in the troubleshooting is to de-install and re-install Office. I was hoping that a repair would rewrite the registry, but apparently it doesn’t. A complete de/re install should do this. Templates such as normal.dotm should be preserved, but I would back them up just to be safe.

If that fails then the next step would be to go to the last windows system restore point where the feature worked. However, this is probably impractical since you don’t know how long this feature has been broken.

Источник

Error accessing Project > References window?

In Visual Basic 6, when I attempt to access Project > References, it throws an error:

Error accessing system registry

  • Logged in as the local computer administrator
  • running Windows XP Professional and
  • I can execute regedt32.exe and access all the registry keys just fine.

VB6 was installed as the local administrator.

Any idea why this happens?

I’m running crystal reports 8.5 and it supposed to already have fixed that issue but apparently I still have the issue with 8.5 installed. I have also made the attempt of reinstalling crystal reports with no luck on the issue.

13 Answers 13

Depending on the Windows OS you have (I have Windows 7 Enterprise), you might want to try giving administrator rights to the REGTLIB.EXE (located in C:Windws). Right click on the REGTLIB.EXE file. Select Properties from the pop-up menu. Then select the Compatiblity tab. On the Compatiblity tab, check/select the Run this program as Administrator checkbox. Click OK to save your changes. It might take take care of the problem for you. It worked for me. Good luck.

For me this worked:

  1. goto C:Program FilesMicrosoft Visual StudioVB98
  2. change the property of VB6.EXE by right click->Compatibility In privilege level section, check the option Run this program as Administrator

If you’re running Office 2010 (Beta) Word (apparently) writes a restricted registry key. VB throws the error when scanning the registry. The key I have is:

For Regmon — Filter for Process Name -> «vb6.exe» and Result -> ACCESS DENIED . Helps find it very quickly.

Fixed it with PSToosl (PSEXEC) to run registry editor. The command line is,

psexec -i -d -s c:windowsregedit.exe

psexec needs to be run with elevated-permissions.

Edit by Jim: I’m on a Windows 7 (x64) box. Elevated permissions require the PSTools solution. XP can get away with a little less.

You could try Process Monitor to see which registry keys are accessed.

I got this on a machine that I was using for VB6 development. I had been building a lot of COM DLLs from VB6 (without binary compatibility) and the cruft that had built up in the registry eventually got too much.

Have a look at what size the registry is and what limit you have set. I doubled the registry size and then went looking for a good registry hoover.

Here is a solution from Microsoft. It references the Crystal Reports problem, but the solution just uses regedit32 to walk the HKEY_CLASSES_ROOTTypeLib and HKEY_CLASSES_ROOTCLSID registry branches for dimmed keys and correcting the security on those keys. There are also instructions to fix the security if regedit32 is unable to access the key. Article ID: 269383

In Windows 7 go to start menu then right click «Microsoft Visual Basic 6» then select properties and click Compatibility from the dialog box that appears then tick «Run this program as an administrator».

Have you tried this? Basically, it seems that it is a crystal reports issue. Hope that helps.

Perhaps worth a try going to the «User Account Control Settings». Regards,

When I installed VB6 on Win7-64 (using instructions easily found by a search engine), it worked fine. UAC was off — i.e. set to «never notify.»

After a few weeks I turned UAC on — i.e. set it to its default. VB6 then couldn’t compile because of the «Error accessing the system registry» problem. Unfortunately, turning it off again didn’t help. Apparently the damage done by turning it on was irreversible. I can’t explain why this should be, but that’s my experience.

Giving REGTLIB.EXE administrative privileges while leaving UAC off sounded like a great idea, but that didn’t work for me either.

Finally, using Process Monitor and PsTools as described in other posts here worked. However, I had to give Full Control to large parts of my registry to Everyone. This didn’t apply just to isolated keys. It seems that the compiler needs to add keys to major nodes, so I had to open up these entire nodes.

Aside from the fact that working through these steps took hours, I’m now much more exposed than I was before I tried to increase security via UAC, However, I need VB6 and don’t see another solution short of a new computer.

Lesson: Don’t use UAC with VB6. Except if you’ve arrived here it’s too late for that.

Источник

 

Alemox

Пользователь

Сообщений: 2183
Регистрация: 25.02.2013

При попытке зайти в библиотеки появляется вот такая ошибка
error accessing the system registry
Гугленье не помогло там всё через какие-то программы непонятные и не на русском. Кто сталкивался с такой проблемой. Что надо поправить?

Прикрепленные файлы

  • 1.png (43.25 КБ)

Мастерство программиста не в том, чтобы писать программы, работающие без ошибок.
А в том, чтобы писать программы, работающие при любом количестве ошибок.

 

Игорь

Пользователь

Сообщений: 3621
Регистрация: 23.12.2012

#2

04.12.2017 16:29:28

в интернетах советуют вот что:

Цитата
Depending on the Windows OS you have (I have Windows 7 Enterprise), you might want to try giving administrator rights to the REGTLIB.EXE (located in C:Windws). Right click on the REGTLIB.EXE file. Select Properties from the pop-up menu. Then select the Compatiblity tab. On the Compatiblity tab, check/select the Run this program as Administrator checkbox. Click OK to save your changes. It might take take care of the problem for you. It worked for me. Good luck.
 

Андрей VG

Пользователь

Сообщений: 11878
Регистрация: 22.12.2012

Excel 2016, 365

Доброе время суток
Советовал бы перед тем chkdsk прогнать, мало ли может сбой какой был и в файловой системе ошибки.

 

Alemox

Пользователь

Сообщений: 2183
Регистрация: 25.02.2013

Игорь, спасибо, попробовал такой способ. Даже перезагрузился, но проблема осталась.
Андрей VG, возможно ли что после установки обновлений для Qffice или системы что-то поломалось? После прошлонедельных обновлений у меня с компом вообще бодяга какая-то творится. В центробновлений вообще нельзя попасть, всё зависает и потом даже папки не открываются ни одна, пишет что их нет. Помогает только перезагрузка. После перезагрузки всё нормально. Но если попытаться опять зайти в центр обновления опять всё намертво виснет.

Мастерство программиста не в том, чтобы писать программы, работающие без ошибок.
А в том, чтобы писать программы, работающие при любом количестве ошибок.

 

Андрей VG

Пользователь

Сообщений: 11878
Регистрация: 22.12.2012

Excel 2016, 365

#5

04.12.2017 17:04:40

Цитата
Alemox написал:
или системы что-то поломалось?

Возможно. Допустим была нештатная перезагрузка — нажали reset.
Прогоните chkdsk c: /f (попросит отложить до следующей перезагрузки — подтвердите и перезагрузитесь).
Потом для страховки sfc /scannow
И то и другое из-под режима администратора.

 

Alemox

Пользователь

Сообщений: 2183
Регистрация: 25.02.2013

Андрей VG, проверил Chkdsk ничего не обнаружил.
Затем прогнал sfc /scannow
Выявил одну ошибку, которую он успешно исправил после перезагрузки. Починились папки и центр обновления. Excel всё в той же поре. Не работает. Буду дальше думать.

Прикрепленные файлы

  • Ошибка.png (34.48 КБ)

Мастерство программиста не в том, чтобы писать программы, работающие без ошибок.
А в том, чтобы писать программы, работающие при любом количестве ошибок.

 

Андрей VG

Пользователь

Сообщений: 11878
Регистрация: 22.12.2012

Excel 2016, 365

#7

05.12.2017 08:48:07

Цитата
Alemox написал:
Починились папки и центр обновления.

Уже лучше. Есть возможность проверить доступ к Reference под другой учётной записью, которая ранее не использовалась на этом компьютере? Похоже слетели права доступа к реестру.

 

Alemox

Пользователь

Сообщений: 2183
Регистрация: 25.02.2013

Сейчас пытаюсь восстановить права с помощью утилиты

Process Monitor

, но пока разобраться не могу. Пишут что Flash плеер блокирует. Но я не нашёл его по ключам в реестре. Нашёл от Adobe Acrobata одголоски, но чего с этим делать пока не понял.

Мастерство программиста не в том, чтобы писать программы, работающие без ошибок.
А в том, чтобы писать программы, работающие при любом количестве ошибок.

 

Alemox

Пользователь

Сообщений: 2183
Регистрация: 25.02.2013

Виновника нашёл. Флешплеер. Теперь надо понять что надо прописать или изменить.

Мастерство программиста не в том, чтобы писать программы, работающие без ошибок.
А в том, чтобы писать программы, работающие при любом количестве ошибок.

 

Alemox

Пользователь

Сообщений: 2183
Регистрация: 25.02.2013

Мануал написал, но весит он 300 кБ.
Поэтому заливаю на файлообменник.
Кому интересно качайте пока есть возможность.
Ссылка в нижнем сообщении.

Изменено: Alemox08.05.2018 21:12:12

Мастерство программиста не в том, чтобы писать программы, работающие без ошибок.
А в том, чтобы писать программы, работающие при любом количестве ошибок.

 

kukhmaster

Пользователь

Сообщений: 20
Регистрация: 16.04.2018

Поделитесь, пожалуйста, мануалом! Такая же проблема.

 

Alemox

Пользователь

Сообщений: 2183
Регистрация: 25.02.2013

#12

08.05.2018 21:10:46

Ссылка

Мастерство программиста не в том, чтобы писать программы, работающие без ошибок.
А в том, чтобы писать программы, работающие при любом количестве ошибок.

Понравилась статья? Поделить с друзьями:
  • Vaux com interface communication error or interface not powered from car
  • Vat2000 коды ошибок
  • Vast error обзор
  • Vast error на русском читать
  • Vast error комикс