Search code examples
exceptionregistryoutlook-addinsecurityexceptionharmon.ie

Harmon.ie for SharePoint Exception on Init - Registry Access


I have a user who has successfully installed Harmon.ie to the computer, but the log file is showing an "Exception on Init" error. The complete error is below:

Starting Harmonie
2015-01-16 06:48:57,172 INFO  [1] Mainsoft.Harmony.AddIn.HarmonyAddIn - OnConnection
2015-01-16 06:48:57,747 INFO  [1] Mainsoft.Harmony.AddIn.HarmonyAddIn - Load Harmonie version: 3.4.0.9975 Outlook Version 14.0.0.7105 X86 bit
2015-01-16 06:48:57,748 ERROR [1] Mainsoft.Harmony.AddIn.HarmonyAddIn - Exception on Init
System.Security.SecurityException: Requested registry access is not allowed.
   at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
   at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
   at Mainsoft.Harmony.Utils.RedemptionCleaner.CleanOrphanRegistryKeys()
   at Mainsoft.Harmony.AddIn.HarmonyAddIn.Init()
The Zone of the assembly that failed was:
MyComputer

Does anyone know the registry key that is trying to be accessed?


Solution

  • Harmon.ie needs to access at the stage reported in the stack traces you have originally attached the following keys under HKEY_CURRENT_USER\SOFTWARE\Classes

           "Redemption.Addin",            
            "Redemption.AddressLists",
            "Redemption.MAPIFolder",
            "Redemption.MAPITable",
            "Redemption.MAPIUtils",
            "Redemption.RDOSession",
            "Redemption.SafeAppointmentItem",
            "Redemption.SafeContactItem",
            "Redemption.SafeCurrentUser",
            "Redemption.SafeDistList",
            "Redemption.SafeInspector",
            "Redemption.SafeJournalItem",
            "Redemption.SafeMailItem",
            "Redemption.SafeMeetingItem",
            "Redemption.SafePostItem",
            "Redemption.SafeReportItem",
            "Redemption.SafeTaskItem", 
            "Mainsoft.Harmony.OutlookSidebar.TaskPaneSidebarAx"
    

    Outlook should run under an account with sufficient privileges to read\write under HKEY_CURRENT_USER.

    By the way, you are running a quite old version of Harmon.ie, I suggest you download and install the latest 4.5 version from harmon.ie web site.

    --- Jean