web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unhandled Exception loading CRM addin in Outlook 2013

(0) ShareShare
ReportReport
Posted on by 50

Hello there

We're testing using group policy to enable the addin in Outlook 2013 and have run into the below error message happening on loading outlook. It is a bit odd because the text is saying it is enabled by your administrator which was what we wanted. 

Microsoft .NET Framework

Unhandled exception has occurred in your application...

The add-in you have selected is enabled by your system administrator.

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

 

************** Exception Text **************

System.Runtime.InteropServices.COMException (0x80004005): The add-in you have selected is enabled by your system administrator.

   at Microsoft.Office.Core.COMAddIn.set_Connect(Boolean RetValue)

   at Microsoft.Crm.Application.SMWrappers.OutlookInstanceCache.SetRibbonAddinConnectState(Boolean connectState)

   at Microsoft.Crm.Application.SMWrappers.OutlookInstanceCache.<SetInstanceAndCallbacks>b__45()

   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

 

************** Loaded Assemblies **************

mscorlib

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR

    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

----------------------------------------

Microsoft.Crm.Application.Outlook.Components.Platform

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Application.Outlook.Components.Platform.DLL

----------------------------------------

System

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Core

    Assembly Version: 4.0.0.0

   Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

----------------------------------------

Microsoft.Crm.Core

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9910.0220

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/Microsoft.Crm.Core.DLL

----------------------------------------

Microsoft.Crm.Platform.Sdk

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Platform.Sdk.DLL

----------------------------------------

System.Windows.Forms

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

Microsoft.Crm.Admin.AdminService

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9910.0220

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Admin.AdminService.DLL

----------------------------------------

Microsoft.Crm.Application.Outlook.OfflineSync

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Application.Outlook.OfflineSync.DLL

----------------------------------------

Microsoft.Crm.Application.Components.Platform

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Application.Components.Platform.DLL

----------------------------------------

Microsoft.Crm

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/Microsoft.Crm.DLL

----------------------------------------

Microsoft.Crm.Core.Extensions

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9910.0220

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/Microsoft.Crm.Core.Extensions.DLL

----------------------------------------

Microsoft.Interop.Mapi.Interfaces

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Interop.Mapi.Interfaces.DLL

----------------------------------------

Microsoft.ExceptionHelper

    Assembly Version: 1.0.0.0

    Win32 Version: 1.0.0.0

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.ExceptionHelper.DLL

----------------------------------------

Accessibility

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

----------------------------------------

Microsoft.Interop.Mapi.Impl

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Interop.Mapi.Impl.DLL

----------------------------------------

Microsoft.Xrm.Sdk

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9910.0220

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/Microsoft.Xrm.Sdk.DLL

----------------------------------------

System.Xml

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.Runtime.Serialization

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

----------------------------------------

Microsoft.Crm.Sdk.Proxy

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Sdk.Proxy.DLL

----------------------------------------

System.Data.SqlServerCe

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.8876.1

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Data.SqlServerCe/4.0.0.0__89845dcd8080cc91/System.Data.SqlServerCe.dll

----------------------------------------

System.Data

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

System.ServiceModel

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll

----------------------------------------

System.Transactions

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll

----------------------------------------

SMDiagnostics

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll

----------------------------------------

System.ServiceModel.Internals

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll

----------------------------------------

System.Configuration

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.EnterpriseServices

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

----------------------------------------

Microsoft.VisualStudio.Diagnostics.ServiceModelSink

    Assembly Version: 4.0.0.0

    Win32 Version: 11.0.50727.1

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Diagnostics.ServiceModelSink/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll

----------------------------------------

System.Web.Services

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll

----------------------------------------

Microsoft.Crm.Platform.Server

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Platform.Server.DLL

----------------------------------------

System.ServiceModel.Channels

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Channels/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Channels.dll

----------------------------------------

System.Numerics

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

----------------------------------------

System.IdentityModel

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll

----------------------------------------

System.Web

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18446 built by: FX451RTMGDR

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

----------------------------------------

System.Net.Http

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

----------------------------------------

Microsoft.IdentityModel

    Assembly Version: 3.5.0.0

    Win32 Version: 6.1.7600.16394

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.IdentityModel/3.5.0.0__31bf3856ad364e35/Microsoft.IdentityModel.dll

----------------------------------------

System.IdentityModel.Selectors

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel.Selectors/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.Selectors.dll

----------------------------------------

System.Security

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

----------------------------------------

AntiXssLibrary

    Assembly Version: 4.2.0.0

    Win32 Version: 4.2.0.0

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/AntiXssLibrary.DLL

----------------------------------------

System.Xaml

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll

----------------------------------------

Microsoft.Crm.Sdk.Reserved

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Sdk.Reserved.DLL

----------------------------------------

Microsoft.Crm.ObjectModel

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.ObjectModel.DLL

----------------------------------------

System.Management

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll

----------------------------------------

Microsoft.Crm.Sdk

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9910.0220

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/Microsoft.Crm.Sdk.DLL

----------------------------------------

Microsoft.Crm.MapiShared

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.MapiShared.DLL

----------------------------------------

WinFormsRegions

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/WinFormsRegions.DLL

----------------------------------------

Microsoft.Crm.Application.Outlook.Components.Platform.XmlSerializers

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Application.Outlook.Components.Platform.XmlSerializers.DLL

----------------------------------------

Microsoft.GeneratedCode

    Assembly Version: 1.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

Microsoft.Crm.Extensibility.Converters

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.9690.3911

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Extensibility.Converters.DLL

----------------------------------------

CustomMarshalers

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/CustomMarshalers/v4.0_4.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll

----------------------------------------

Microsoft.Office.Interop.Outlook

    Assembly Version: 15.0.0.0

    Win32 Version: 15.0.4569.1506

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Interop.Outlook/15.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Outlook.dll

----------------------------------------

office

    Assembly Version: 15.0.0.0

    Win32 Version: 15.0.4615.1001

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/office/15.0.0.0__71e9bce111e9429c/office.dll

----------------------------------------

 

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

 

For example:

 

<configuration>

    <system.windows.forms jitDebugging="true" />

</configuration>

 

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

*This post is locked for comments

I have the same question (0)
  • David74 Profile Picture
    170 on at

    Hello,

    I am facing the same problem. Did you solve your problem ?

    Thank you for your help

  • David74 Profile Picture
    170 on at

    If this can help, we solved the problem. First the group policy was set to force the activation of the addin. We change this parameter (to the value 2) to trust the add-in without forcing his activation.

  • KathrynH Profile Picture
    50 on at

    We had an error in our GPO we needed to have the below as managed addins:

    List of managed add-ins Enabled  

    List of managed add-ins  

    crmaddin.addin

    crmaddin.addin.1

  • Community Member Profile Picture
    on at

    Kath, thanks - this resolved one of the issues.

    However, I have noticed that the CRM addin has 2 entries in the plugins list. In order to prevent our users from disabling both of them, we also have to add the following to the GPO:

    crmaddin.ribbonaddin

    With this entry, we see the unhandled exception error, exactly as the OP has pasted it in. If you continue, Outlook operates normally, and the GPO seems to be locking out the user from disabling the addin - which is the desired behaviour. Obviously not happy pushing the policy out there if it causes this error message to appear though.

    I tried adding this:

    crmaddin.ribbonaddin.1

    to the list, but this didnt resolve like the other one did.

    Any ideas?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans