Asked by:
Unhandled exception error in Outlook 2010 with Dynamics 365 2016 enabled

Question
-
I'm having an issue in Outlook 2010 where if the Microsoft Dyanimcs 365 2016 add in is enabled, Outlook will show "Unhandled exception error has occurred in your application......." and further down the error message "......Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))"
If I open Outlook in safe mode, disable the add in, and restart, it works as normal. The issue is, I need to be able to use this add in! I've tried running repairs on both .NET framework (4.7), Office and Dynamics, reinstalled the add in, run Windows updates and nothing has worked. I'm using Windows 7.
The full text of the error message is below:
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 (0x8002000B): Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
at Microsoft.Office.Core.COMAddIns.Item(Object& Index)
at Microsoft.Crm.Application.SMWrappers.OutlookInstanceCache.SetRibbonAddinConnectState(Boolean connectState)
at Microsoft.Crm.Application.SMWrappers.OutlookInstanceCache.<SetInstanceAndCallbacks>b__40()
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.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Microsoft.Crm.Application.Outlook.Components.Platform
Assembly Version: 8.0.0.0
Win32 Version: 8.2.1.176
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.7.2102.0 built by: NET47REL1LAST
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.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
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.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.Crm.Application.Outlook.OfflineSync
Assembly Version: 8.0.0.0
Win32 Version: 8.2.1.176
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: 8.0.0.0
Win32 Version: 8.2.1.176
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Application.Components.Platform.DLL
----------------------------------------
Microsoft.Crm.Core
Assembly Version: 8.0.0.0
Win32 Version: 8.2.0.741
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/Microsoft.Crm.Core.DLL
----------------------------------------
Microsoft.Crm.Platform.Sdk
Assembly Version: 8.0.0.0
Win32 Version: 8.2.1.176
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Platform.Sdk.DLL
----------------------------------------
microsoft.interop.mapi.interfaces
Assembly Version: 8.0.0.0
Win32 Version: 8.2.1.176
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/microsoft.interop.mapi.interfaces.DLL
----------------------------------------
Microsoft.Crm
Assembly Version: 8.0.0.0
Win32 Version: 8.2.1.176
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/Microsoft.Crm.DLL
----------------------------------------
Microsoft.Crm.Application.Outlook.WebBrowser
Assembly Version: 8.0.0.0
Win32 Version: 8.2.1.176
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Application.Outlook.WebBrowser.DLL
----------------------------------------
Microsoft.Crm.Application.Outlook.TelemetryClient
Assembly Version: 8.0.0.0
Win32 Version: 8.2.1.176
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.Application.Outlook.TelemetryClient.DLL
----------------------------------------
System.ServiceProcess
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2053.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2053.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Xrm.Sdk
Assembly Version: 8.0.0.0
Win32 Version: 8.2.0.741
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/Microsoft.Xrm.Sdk.DLL
----------------------------------------
Microsoft.Crm.Constants
Assembly Version: 8.0.0.0
Win32 Version: 8.2.0.741
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/Microsoft.Crm.Constants.DLL
----------------------------------------
Microsoft.Diagnostics.Tracing.EventSource
Assembly Version: 1.0.18.0
Win32 Version: 1.0.18.0
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/Microsoft.Diagnostics.Tracing.EventSource.DLL
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
WinFormsRegions
Assembly Version: 8.0.0.0
Win32 Version: 8.2.1.176
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/WinFormsRegions.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
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2053.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2053.0 built by: NET47REL1
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: 8.0.0.0
Win32 Version: 8.2.0001.0176
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Interop.Mapi.Impl.DLL
----------------------------------------
CustomMarshalers
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2053.0 built by: NET47REL1
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.1507
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.4613.1000
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/office/15.0.0.0__71e9bce111e9429c/office.dll
----------------------------------------
Microsoft.Crm.MapiShared
Assembly Version: 8.0.0.0
Win32 Version: 8.2.0001.0176
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20CRM/Client/res/web/bin/Microsoft.Crm.MapiShared.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.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
----------------------------------------
************** 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.Wednesday, September 13, 2017 3:51 PM