none
Error Accessing System Registry RRS feed

  • Question

  • When I try to add a reference in the VBA code window of Outlook 2010, get message "Error accessing system registry" as soon as I click on Tools -> References. Any ideas what is causing this?
    Wednesday, July 29, 2015 3:36 AM

Answers

  • >>>When the user is given Admin privileges on that Citrix server, it works.  But when they log in as a regular user, the reference is not there, and the error shows up.

    According to your description,this sounds like the registry permissions issue discussed in the following Knowledge Base (KB) Article:

    A user who is not an administrator experiences VBA permission problems in Microsoft Dynamics GP

    https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;929612

    And it is full control permission on 4 keys only (as per KB 929612):

    https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;929612

    • HKEY_CLASSES_ROOT\Clsid

    • HKEY_CLASSES_ROOT\Typelib

    • HKEY_CLASSES_ROOT\Interface

    • HKEY_LOCAL_MACHINE\Software\Classes\CLSID

    It solves the problem and most sites using VBA on Terminal Server/Citrix have made this change.

    • Marked as answer by serenejen Sunday, August 2, 2015 8:44 PM
    Thursday, July 30, 2015 8:55 AM

All replies

  • It looks like something is wrong with windows registry records on the PC. 

    Do you have Crystal Reports installed on the PC? If so, see PRB: 'Error Accessing the System Registry' Message When Displaying VB/VBA References .

    Did you try to run Outlook with admin privileges/permissions?

    Wednesday, July 29, 2015 5:10 AM
  • Thanks for responding. But Crystal Reports is not being used.

    When the user is given Admin privileges on that Citrix server, it works.  But when they log in as a regular user, the reference is not there, and the error shows up.

    Why isn't the reference still there?

    Wednesday, July 29, 2015 6:13 AM
  • Take a look at the FIX: "Access to the Registry Key Denied" Error Message When You Register .NET Assembly for COM Interop article which describes a similar issue. It states the following:

    This problem may occur because the current user does not have the correct permissions for the following key in the Windows registry: 

    HKEY_CLASSES_ROOT\Component Categories\{62C8FE65-4EBB-45e7-B440-6E39B2CDBF29}

    Wednesday, July 29, 2015 7:29 AM
  • >>>When the user is given Admin privileges on that Citrix server, it works.  But when they log in as a regular user, the reference is not there, and the error shows up.

    According to your description,this sounds like the registry permissions issue discussed in the following Knowledge Base (KB) Article:

    A user who is not an administrator experiences VBA permission problems in Microsoft Dynamics GP

    https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;929612

    And it is full control permission on 4 keys only (as per KB 929612):

    https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;929612

    • HKEY_CLASSES_ROOT\Clsid

    • HKEY_CLASSES_ROOT\Typelib

    • HKEY_CLASSES_ROOT\Interface

    • HKEY_LOCAL_MACHINE\Software\Classes\CLSID

    It solves the problem and most sites using VBA on Terminal Server/Citrix have made this change.

    • Marked as answer by serenejen Sunday, August 2, 2015 8:44 PM
    Thursday, July 30, 2015 8:55 AM
  • Thanks all. Will check this out and let you know.
    Thursday, July 30, 2015 4:27 PM
  • Yes!  this did it.  Thanks much.
    Sunday, August 2, 2015 8:44 PM