Error when loading Addin in Outlook 2010 x64

Add-in Express™ Support Service
That's what is more important than anything else

Error when loading Addin in Outlook 2010 x64
 
Chris McHenry




Posts: 11
Joined: 2010-08-24
Our Addin is failing to load in Outlook 2010 x64. The install succeeds, but when launching Outlook we get the following error. Running in the Visual Studio Debugger on the same machine works fine. Also running an x86 install works fine. We've tried this on multiple computers with the same result.

Detailed technical information follows:
---
(Inner Exception)
Date and Time: 4/2/2013 3:40:43 PM
Machine Name:
IP Address:
Current User:

Application Domain: C:\Program Files\Integro\IEMx Client\
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.OL.2005/7.0.4023.2005__e69a7e0f3592d2b8/AddinExpress.OL.2005.dll
Assembly Full Name: AddinExpress.OL.2005, Version=7.0.4023.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Assembly Version: 7.0.4023.2005
Assembly Build Date: 1/6/2011 2:06:50 AM

Exception Source: Integro.OutlookAddin
Exception Type: System.NullReferenceException
Exception Message: Object reference not set to an instance of an object.
Exception Target Site: .ctor

---- Stack Trace ----
Integro.OutlookAddin.OlFormExistingMessage..ctor()
AddinExpress.OL.2005.dll: N 0170 (0xAA) IL



(Outer Exception)
Date and Time: 4/2/2013 3:40:43 PM
Machine Name:
IP Address:
Current User:

Application Domain: C:\Program Files\Integro\IEMx Client\
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.OL.2005/7.0.4023.2005__e69a7e0f3592d2b8/AddinExpress.OL.2005.dll
Assembly Full Name: AddinExpress.OL.2005, Version=7.0.4023.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Assembly Version: 7.0.4023.2005
Assembly Build Date: 1/6/2011 2:06:50 AM

Exception Source: mscorlib
Exception Type: System.Reflection.TargetInvocationException
Exception Message: Exception has been thrown by the target of an invocation.
Exception Target Site: CreateInstance

---- Stack Trace ----
System.RuntimeTypeHandle.CreateInstance(type As RuntimeType, publicOnly As Boolean, noCheck As Boolean, canBeCached As Boolean&, ctor As RuntimeMethodHandleInternal&, bNeedSecurityCheck As Boolean&)
AddinExpress.OL.2005.dll: N 00000 (0x0) JIT
System.RuntimeType.CreateInstanceSlow(publicOnly As Boolean, skipCheckThis As Boolean, fillCache As Boolean)
AddinExpress.OL.2005.dll: N 0028 (0x1C) IL
System.RuntimeType.CreateInstanceDefaultCtor(publicOnly As Boolean, skipVisibilityChecks As Boolean, skipCheckThis As Boolean, fillCache As Boolean)
AddinExpress.OL.2005.dll: N 0175 (0xAF) IL
System.Activator.CreateInstance(type As Type, nonPublic As Boolean)
AddinExpress.OL.2005.dll: N 0056 (0x38) IL
System.RuntimeType.CreateInstanceImpl(bindingAttr As BindingFlags, binder As Binder, args As Object[], culture As CultureInfo, activationAttributes As Object[])
AddinExpress.OL.2005.dll: N 0523 (0x20B) IL
AddinExpress.OL.ADXOlFormsCollectionItem.CreateForm(FormContainerAssembly As Assembly)
AddinExpress.OL.2005.dll: N 0077 (0x4D) IL
AddinExpress.OL.ADXOlFormsCollectionItem.GetForm(Cancel As Boolean, FormContainerAssembly As Assembly)
AddinExpress.OL.2005.dll: N 0020 (0x14) IL
AddinExpress.OL.ADXOlFormsManager.DoExplorerFormShow(Item As ADXOlFormsCollectionItem, ExplorerArgs As ADXOlExplorerArguments)
AddinExpress.OL.2005.dll: N 0417 (0x1A1) IL


System Info:
===========

AdditionalVersionIdentifier:
Start Time: 4/2/2013 3:40:40 PM
Professional: AddinExpress.OL.2005, Version=7.0.4023.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Outlook version: 14.0.0.6131
SocialConnectorAddinConnected = True
Registered message WM_ADX_TEST=49950
Registered message WM_ADX_SEARCH_WINDOW_ENGINE_HIDE=49951
Registered message WM_ADX_SEARCH_WINDOW_ENGINE_SHOW=49952
Registered message WM_ADXDELETEEMULATEWINDOW=49953
Registered message WM_ADX_WINDOW_ENGINE_HIDE=49954
Registered message WM_ADX_WORDEDITOR_HIDE=49955
Registered message WM_REMOVECONTROLLEDRESIZEWINDOW=49956
Registered message WM_NET_ShowChildWindowMessage=49957
Registered message WM_ADX_NeedRefreshFoldersMessage=49958
Registered message WM_ADX_CLOSE_SERVICE_FORM_FOR_NOT_WORD_INSPECTOR=49959
Registered message WM_ADX_CLOSE_SUPERGRID_SERVICE_FORM=49960
Registered message WM_ADX_CLOSE_READINGPANE_SERVICE_FORM=49961
Registered message WM_INFORMTOSHOWDOCKLAYOUT=49962
Registered message WM_ADX_DESTROY_EMBEDED_WINDOW=49963
Registered message WM_ADX_READING_PANE_HIDE_FROM_SBCLS=49964
Registered message WM_ADX_READING_PANE_SHOW=49965
Registered message WM_ADX_READING_PANE_HIDE=49966
Registered message WM_ADXDELPROC=49967
Registered message WM_ADXSETOLDPROC=49968
Registered message WM_ADXSETNEWPROC=49969
Registered message WM_ADXGETCONTAINERFORM=49970
Registered message WM_ADXADDFORM=49971
Registered message WM_ADXDELETEFORM=49972
Registered message WM_ADXSETCONTAINER=49973
Registered message WM_ADXGETAPPWINDOWPOS=49974
Registered message WM_ADXGETREGIONPARAM=49975
Registered message WM_ADXGETREGIONSIZE=49976
Registered message WM_ADXSETREGIONPARAM=49977
Registered message WM_ADXUPDATEFORMPARAM=49978
Registered message WM_ADXSETMAINPOS=49979
Registered message WM_ADXCLOSEAPPWINDOW=49980
Registered message WM_ADXSETLATESTPROC=49981
Registered message WM_ADXEXIST=49982
Registered message WM_ADXEXISTLAYOUT=49983
Registered message WM_ADXEXISTSERVICEFORM=49984
Registered message WM_ADXWMIGETCONTROL=49985
Registered message WM_ADXWMIPOSCHANGE=49986
Registered message WM_ADXWMISETPOS=49987
Registered message WM_ADXCOMMAND=49988
Registered message WM_ADXMOUSELEAVE=49989
Registered message WM_MSO_BROADCASTCHANGE=49869
Registered message WM_ADXSETACTIVATE=49990
Registered message WM_ADXGETTYPESUBCLASS=49991
Registered message WM_ADXCLOSEBUTTONCLICK=49992
Registered message WM_ADXHIDEALLREGIONFORMS=49993
Registered message WM_ADXGETPICTURE=49994
Registered message WM_ADXSUPPORTMINIMIZE=49995
Registered message WM_ADXCONTAINERSHOWFLOATING=49996
Registered message WM_ADXCONTAINERHIDEFLOATING=49997
Registered message WM_ADXSHOWFLOATING=49998
Registered message WM_ADXHIDEFLOATING=49999
Registered message WM_ADXSETFLOATINGPOS=50000
Registered message WM_ADXGETDRAGLAYOUTPARAMS=50001
Registered message WM_ADXSETDRAGFORM=50002
Registered message WM_ADXSETDRAGITEMS=50003
Registered message WM_ADXGETFORMDEFAULTSIZE=50004
Registered message WM_ADXDRAGOVERMINIMIZED=50005
Registered message WM_ADXREDESIGNSUPPORT=50006
Registered message WM_ADXUPDATECLIPREGION=50007
Registered message WM_ADXCTP_VISIBLECHANGED=50008
Registered message WM_ADXMAYBEWORDVIEWWASCHANGED=50009
Registered message WM_ADXSTARTTRANSACTION=50010
Registered message WM_ADXENDTRANSACTION=50011
Registered message WM_ADXSWAPCONTROLLER=50012
Registered message WM_ADXCONTAINERREFRESH=50013
Registered message WM_ADXGETCAPTION=50014
Registered message WM_ADXHOSTVISIBLE=50015
Registered message WM_ADX_GET_ACTUAL_INSPECTORS_COUNT=50016
Registered message WM_ADX_UPDATE_LATEST_KNOWN_INSPECTORS_COUNT=50017
Registered message WM_ADX_FIND_OUTSIDE_INSPECTOR=50018
Exceptions:
===========

ADXOlFormsManager.DoExplorerFormShow: Exception has been thrown by the target of an invocation.
Exception time: 4/2/2013 3:40:43 PM
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at AddinExpress.OL.ADXOlFormsCollectionItem.CreateForm(Assembly FormContainerAssembly)
at AddinExpress.OL.ADXOlFormsCollectionItem.GetForm(Boolean Cancel, Assembly FormContainerAssembly)
at AddinExpress.OL.ADXOlFormsManager.DoExplorerFormShow(ADXOlFormsCollectionItem Item, ADXOlExplorerArguments ExplorerArgs)

AddinExpress.OL.ADXOlFormsManager error: Exception has been thrown by the target of an invocation.
Exception time: 4/2/2013 3:40:43 PM

AddinExpress.OL.ADXOlFormsManager error: Exception has been thrown by the target of an invocation.
Error occured in ADXOlFormsManager.DoExplorerFormShow . See 'Details' section to get more detailed information about the error.
Detailed technical information follows:
---
(Inner Exception)
Date and Time: 4/2/2013 3:40:43 PM
Machine Name:
IP Address:
Current User:

Application Domain: C:\Program Files\Integro\IEMx Client\
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.OL.2005/7.0.4023.2005__e69a7e0f3592d2b8/AddinExpress.OL.2005.dll
Assembly Full Name: AddinExpress.OL.2005, Version=7.0.4023.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Assembly Version: 7.0.4023.2005
Assembly Build Date: 1/6/2011 2:06:50 AM

Exception Source: Integro.OutlookAddin
Exception Type: System.NullReferenceException
Exception Message: Object reference not set to an instance of an object.
Exception Target Site: .ctor

---- Stack Trace ----
Integro.OutlookAddin.OlFormExistingMessage..ctor()
AddinExpress.OL.2005.dll: N 0170 (0xAA) IL



(Outer Exception)
Date and Time: 4/2/2013 3:40:43 PM
Machine Name:
IP Address:
Current User:

Application Domain: C:\Program Files\Integro\IEMx Client\
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.OL.2005/7.0.4023.2005__e69a7e0f3592d2b8/AddinExpress.OL.2005.dll
Assembly Full Name: AddinExpress.OL.2005, Version=7.0.4023.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Assembly Version: 7.0.4023.2005
Assembly Build Date: 1/6/2011 2:06:50 AM

Exception Source: mscorlib
Exception Type: System.Reflection.TargetInvocationException
Exception Message: Exception has been thrown by the target of an invocation.
Exception Target Site: CreateInstance

---- Stack Trace ----
System.RuntimeTypeHandle.CreateInstance(type As RuntimeType, publicOnly As Boolean, noCheck As Boolean, canBeCached As Boolean&, ctor As RuntimeMethodHandleInternal&, bNeedSecurityCheck As Boolean&)
AddinExpress.OL.2005.dll: N 00000 (0x0) JIT
System.RuntimeType.CreateInstanceSlow(publicOnly As Boolean, skipCheckThis As Boolean, fillCache As Boolean)
AddinExpress.OL.2005.dll: N 0028 (0x1C) IL
System.RuntimeType.CreateInstanceDefaultCtor(publicOnly As Boolean, skipVisibilityChecks As Boolean, skipCheckThis As Boolean, fillCache As Boolean)
AddinExpress.OL.2005.dll: N 0175 (0xAF) IL
System.Activator.CreateInstance(type As Type, nonPublic As Boolean)
AddinExpress.OL.2005.dll: N 0056 (0x38) IL
System.RuntimeType.CreateInstanceImpl(bindingAttr As BindingFlags, binder As Binder, args As Object[], culture As CultureInfo, activationAttributes As Object[])
AddinExpress.OL.2005.dll: N 0523 (0x20B) IL
AddinExpress.OL.ADXOlFormsCollectionItem.CreateForm(FormContainerAssembly As Assembly)
AddinExpress.OL.2005.dll: N 0077 (0x4D) IL
AddinExpress.OL.ADXOlFormsCollectionItem.GetForm(Cancel As Boolean, FormContainerAssembly As Assembly)
AddinExpress.OL.2005.dll: N 0020 (0x14) IL
AddinExpress.OL.ADXOlFormsManager.DoExplorerFormShow(Item As ADXOlFormsCollectionItem, ExplorerArgs As ADXOlExplorerArguments)
AddinExpress.OL.2005.dll: N 0417 (0x1A1) IL




ADXOlFormsManager.DoExplorerFormShow: Exception has been thrown by the target of an invocation.
Exception time: 4/2/2013 3:40:43 PM
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at AddinExpress.OL.ADXOlFormsCollectionItem.CreateForm(Assembly FormContainerAssembly)
at AddinExpress.OL.ADXOlFormsCollectionItem.GetForm(Boolean Cancel, Assembly FormContainerAssembly)
at AddinExpress.OL.ADXOlFormsManager.DoExplorerFormShow(ADXOlFormsCollectionItem Item, ADXOlExplorerArguments ExplorerArgs)

AddinExpress.OL.ADXOlFormsManager error: Exception has been thrown by the target of an invocation.
Exception time: 4/2/2013 3:40:43 PM

AddinExpress.OL.ADXOlFormsManager error: Exception has been thrown by the target of an invocation.
Error occured in ADXOlFormsManager.DoExplorerFormShow . See 'Details' section to get more detailed information about the error.
Detailed technical information follows:
---
(Inner Exception)
Date and Time: 4/2/2013 3:40:43 PM
Machine Name:
IP Address:
Current User:

Application Domain: C:\Program Files\Integro\IEMx Client\
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.OL.2005/7.0.4023.2005__e69a7e0f3592d2b8/AddinExpress.OL.2005.dll
Assembly Full Name: AddinExpress.OL.2005, Version=7.0.4023.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Assembly Version: 7.0.4023.2005
Assembly Build Date: 1/6/2011 2:06:50 AM

Exception Source: Integro.OutlookAddin
Exception Type: System.NullReferenceException
Exception Message: Object reference not set to an instance of an object.
Exception Target Site: .ctor

---- Stack Trace ----
Integro.OutlookAddin.OlFormExistingMessage..ctor()
AddinExpress.OL.2005.dll: N 0170 (0xAA) IL



(Outer Exception)
Date and Time: 4/2/2013 3:40:43 PM
Machine Name:
IP Address:
Current User:

Application Domain: C:\Program Files\Integro\IEMx Client\
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.OL.2005/7.0.4023.2005__e69a7e0f3592d2b8/AddinExpress.OL.2005.dll
Assembly Full Name: AddinExpress.OL.2005, Version=7.0.4023.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Assembly Version: 7.0.4023.2005
Assembly Build Date: 1/6/2011 2:06:50 AM

Exception Source: mscorlib
Exception Type: System.Reflection.TargetInvocationException
Exception Message: Exception has been thrown by the target of an invocation.
Exception Target Site: CreateInstance

---- Stack Trace ----
System.RuntimeTypeHandle.CreateInstance(type As RuntimeType, publicOnly As Boolean, noCheck As Boolean, canBeCached As Boolean&, ctor As RuntimeMethodHandleInternal&, bNeedSecurityCheck As Boolean&)
AddinExpress.OL.2005.dll: N 00000 (0x0) JIT
System.RuntimeType.CreateInstanceSlow(publicOnly As Boolean, skipCheckThis As Boolean, fillCache As Boolean)
AddinExpress.OL.2005.dll: N 0028 (0x1C) IL
System.RuntimeType.CreateInstanceDefaultCtor(publicOnly As Boolean, skipVisibilityChecks As Boolean, skipCheckThis As Boolean, fillCache As Boolean)
AddinExpress.OL.2005.dll: N 0175 (0xAF) IL
System.Activator.CreateInstance(type As Type, nonPublic As Boolean)
AddinExpress.OL.2005.dll: N 0056 (0x38) IL
System.RuntimeType.CreateInstanceImpl(bindingAttr As BindingFlags, binder As Binder, args As Object[], culture As CultureInfo, activationAttributes As Object[])
AddinExpress.OL.2005.dll: N 0523 (0x20B) IL
AddinExpress.OL.ADXOlFormsCollectionItem.CreateForm(FormContainerAssembly As Assembly)
AddinExpress.OL.2005.dll: N 0077 (0x4D) IL
AddinExpress.OL.ADXOlFormsCollectionItem.GetForm(Cancel As Boolean, FormContainerAssembly As Assembly)
AddinExpress.OL.2005.dll: N 0020 (0x14) IL
AddinExpress.OL.ADXOlFormsManager.DoExplorerFormShow(Item As ADXOlFormsCollectionItem, ExplorerArgs As ADXOlExplorerArguments)
AddinExpress.OL.2005.dll: N 0417 (0x1A1) IL




Log:
===========

4/2/2013 3:40:43 PM 1 -------- |
4/2/2013 3:40:43 PM 1 -------- | AddinExpress.OL.ADXOlFormsManager error: Exception has been thrown by the target of an invocation.
4/2/2013 3:40:43 PM 1 -------- | Exception time: 4/2/2013 3:40:43 PM
4/2/2013 3:40:43 PM 1 -------- |
4/2/2013 3:40:43 PM 1 --------ADXExceptionManager.DoError
4/2/2013 3:40:43 PM 1 --------*!* ProcessError ADXOlFormsManager.DoExplorerFormShow
4/2/2013 3:40:43 PM 1 -------- |
4/2/2013 3:40:43 PM 1 -------- | ADXOlFormsManager.DoExplorerFormShow: Exception has been thrown by the target of an invocation.
4/2/2013 3:40:43 PM 1 -------- | Exception time: 4/2/2013 3:40:43 PM
4/2/2013 3:40:43 PM 1 -------- |
4/2/2013 3:40:43 PM 1 ------ADXXOlExceptionManager.InternalProcessError
4/2/2013 3:40:43 PM 1 ------*!* It is not WebViewPane
4/2/2013 3:40:43 PM 1 ------SetHTMLDocumentTitle
4/2/2013 3:40:43 PM 1 ------*!* It is not WebViewPane
4/2/2013 3:40:43 PM 1 ------SetHTMLDocumentTitle
4/2/2013 3:40:43 PM 1 --------*!* It is not WebViewPane
4/2/2013 3:40:43 PM 1 --------SetHTMLDocumentTitle
4/2/2013 3:40:43 PM 1 --------SetBoundsCore
4/2/2013 3:40:43 PM 1 ------ADXForm
4/2/2013 3:40:43 PM 1 ------GetForm
4/2/2013 3:40:43 PM 1 ------SetExplorerAppWindowProperty
4/2/2013 3:40:43 PM 1 ------IsContextSupport
4/2/2013 3:40:43 PM 1 ------DoExplorerFormShow
4/2/2013 3:40:43 PM 1 ------ADXForm[FolderViewServiceForm][320E84].Hide
4/2/2013 3:40:43 PM 1 ------{-Hide forms
4/2/2013 3:40:43 PM 1 --------HideExplorerForms
4/2/2013 3:40:43 PM 1 --------HideExplorerForms
4/2/2013 3:40:43 PM 1 ------{+Hide forms
4/2/2013 3:40:43 PM 1 ------{-LOCK in DeleteAllNotCachedExplorerForms
4/2/2013 3:40:43 PM 1 --------{-DeleteAllNotCachedExplorerForms
4/2/2013 3:40:43 PM 1 --------{+DeleteAllNotCachedExplorerForms
4/2/2013 3:40:43 PM 1 ------{+LOCK in DeleteAllNotCachedExplorerForms
4/2/2013 3:40:43 PM 1 ------CancelIsHiddenByDeveloperFlagForExplorerForms
4/2/2013 3:40:43 PM 1 ------DoExplorerFolderSwitch
4/2/2013 3:40:43 PM 1 ------InitFolderProperties
4/2/2013 3:40:43 PM 1 ------ADXOlExplorerArguments 1 FolderEvent
4/2/2013 3:40:43 PM 1 ----{+Event IExplorerEvents_10.FolderSwitch
4/2/2013 3:40:43 PM 1 ----
4/2/2013 3:40:43 PM 1 ----
4/2/2013 3:40:43 PM 1 ----{-Event IExplorerEvents_10.ViewSwitch
4/2/2013 3:40:43 PM 1 ------DoExplorerViewSwitch
4/2/2013 3:40:43 PM 1 ------InitFolderProperties
4/2/2013 3:40:43 PM 1 ------ADXOlExplorerArguments 1 FolderEvent
4/2/2013 3:40:43 PM 1 ----{+Event IExplorerEvents_10.ViewSwitch
4/2/2013 3:40:43 PM 1 ----
4/2/2013 3:40:43 PM 1 ----
4/2/2013 3:40:43 PM 1 ----{-Event IExplorerEvents_10.Deactivate
4/2/2013 3:40:43 PM 1 ----{+Event IExplorerEvents_10.Deactivate
4/2/2013 3:40:43 PM 1 ----
4/2/2013 3:40:43 PM 1 ----
4/2/2013 3:40:43 PM 1 ----{-Event Event IExplorerEvents_10.Activate
4/2/2013 3:40:43 PM 1 ------DoExplorerActivate
4/2/2013 3:40:43 PM 1 ------OlExplorerEvents_BaseLogic.DoExplorerActivate
4/2/2013 3:40:43 PM 1 ----{+Event Event IExplorerEvents_10.Activate
4/2/2013 3:40:43 PM 1 ----
4/2/2013 3:40:43 PM 1 ----
4/2/2013 3:40:43 PM 1 ----{-Event IExplorerEvents_10.Deactivate
4/2/2013 3:40:43 PM 1 ----{+Event IExplorerEvents_10.Deactivate
4/2/2013 3:40:43 PM 1 ----
4/2/2013 3:40:43 PM 1 ---- |
4/2/2013 3:40:43 PM 1 ---- | AddinExpress.OL.ADXOlFormsManager error: Exception has been thrown by the target of an invocation.
4/2/2013 3:40:43 PM 1 ---- | Exception time: 4/2/2013 3:40:43 PM
4/2/2013 3:40:43 PM 1 ---- |
4/2/2013 3:40:43 PM 1 ----ADXExceptionManager.DoError
4/2/2013 3:40:43 PM 1 ----*!* ProcessError ADXOlFormsManager.DoExplorerFormShow
4/2/2013 3:40:43 PM 1 ---- |
4/2/2013 3:40:43 PM 1 ---- | ADXOlFormsManager.DoExplorerFormShow: Exception has been thrown by the target of an invocation.
4/2/2013 3:40:43 PM 1 ---- | Exception time: 4/2/2013 3:40:43 PM
4/2/2013 3:40:43 PM 1 ---- |
4/2/2013 3:40:43 PM 1 --ADXXOlExceptionManager.InternalProcessError
4/2/2013 3:40:43 PM 1 --*!* It is not WebViewPane
4/2/2013 3:40:43 PM 1 --SetHTMLDocumentTitle
4/2/2013 3:40:41 PM 1 --*!* It is not WebViewPane
4/2/2013 3:40:41 PM 1 --SetHTMLDocumentTitle
4/2/2013 3:40:41 PM 1 ----*!* It is not WebViewPane
4/2/2013 3:40:41 PM 1 ----SetHTMLDocumentTitle
4/2/2013 3:40:41 PM 1 ----SetBoundsCore
4/2/2013 3:40:41 PM 1 --ADXForm
4/2/2013 3:40:41 PM 1 --GetForm
4/2/2013 3:40:41 PM 1 --SetExplorerAppWindowProperty
4/2/2013 3:40:41 PM 1 --IsContextSupport
4/2/2013 3:40:41 PM 1 --DoExplorerFormShow
4/2/2013 3:40:41 PM 1 --InitFolderProperties
4/2/2013 3:40:41 PM 1 --ADXOlExplorerArguments 1 Initialize
4/2/2013 3:40:41 PM 1 --OlExplorerEvents_BaseLogic.ConnectTo
4/2/2013 3:40:41 PM 1 --------fAppWindow.SetAddress(this.AdxHandle)
4/2/2013 3:40:41 PM 1 --------WindowsAPI.SetParent
4/2/2013 3:40:41 PM 1 ------Initialize
4/2/2013 3:40:41 PM 1 ------ADXOlServiceForm.Initialize
4/2/2013 3:40:41 PM 1 ------ADXOlServiceForm
4/2/2013 3:40:41 PM 1 --------SetBoundsCore
4/2/2013 3:40:41 PM 1 ------ADXForm
4/2/2013 3:40:41 PM 1 ----ADXForm.CreateInstanceForClientLayout
4/2/2013 3:40:41 PM 1 ----Create FolderViewServiceForm
4/2/2013 3:40:41 PM 1 --------fAppWindow.SetAddress(this.AdxHandle)
4/2/2013 3:40:41 PM 1 --------InitializeInResource
4/2/2013 3:40:41 PM 1 --------WindowsAPI.SetParent
4/2/2013 3:40:41 PM 1 ------Initialize
4/2/2013 3:40:41 PM 1 ------ADXOlServiceForm.Initialize
4/2/2013 3:40:41 PM 1 ------ADXOlServiceForm
4/2/2013 3:40:41 PM 1 --------SetBoundsCore
4/2/2013 3:40:41 PM 1 ------ADXForm
4/2/2013 3:40:41 PM 1 ----ADXForm.CreateInstanceForClientLayout
4/2/2013 3:40:41 PM 1 ----Create ReadingPaneServiceForm
4/2/2013 3:40:41 PM 1 --OlExplorerEvents_BaseLogic
4/2/2013 3:40:41 PM 1 --RestoreWebViewFolderSettings
4/2/2013 3:40:41 PM 1 --FindOutsideInspectorWatchObject.create
4/2/2013 3:40:41 PM 1 ----OlInspectorsEvents_SinkHelper.ConnectTo
4/2/2013 3:40:41 PM 1 ----OlExplorersEvents_SinkHelper.ConnectTo
4/2/2013 3:40:41 PM 1 ----OlExplorersEvents_SinkHelper
4/2/2013 3:40:41 PM 1 ----OlApplicationEvents_BaseLogic.ConnectTo
4/2/2013 3:40:41 PM 1 ----OlApplicationEvents_BaseLogic
4/2/2013 3:40:41 PM 1 --ConnectOutlookEvents
4/2/2013 3:40:41 PM 1 --LoadDefaultFoldersEntryIDFromRegistry
4/2/2013 3:40:41 PM 1 --CheckSocialConnectorAddin
4/2/2013 3:40:41 PM 1 {+Event DoAddinInitialize
4/2/2013 3:40:41 PM 1
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetInspectorLayout
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetInspectorItemTypes
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetFormClassName
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetCached
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetFormClassName
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetExplorerLayout
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetExplorerItemTypes
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetCached
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetFormClassName
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetExplorerLayout
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetExplorerItemTypes
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetCached
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetInspectorLayout
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetInspectorItemTypes
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetFormClassName
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetCached
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetFormClassName
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetExplorerLayout
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetExplorerItemTypes
4/2/2013 3:40:40 PM 1 ADXOlFormsCollectionItem.SetCached
4/2/2013 3:40:40 PM 1 {-ConnectAddinModuleEvents
4/2/2013 3:40:40 PM 1 --Before connection Point Advise
4/2/2013 3:40:40 PM 1 {+ConnectAddinModuleEvents
4/2/2013 3:40:40 PM 1 SetOwner
4/2/2013 3:40:40 PM 1 --ADXXOlExceptionManager
4/2/2013 3:40:40 PM 1 InitializeClass
Posted 02 Apr, 2013 16:45:40 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Chris,

Thank you for posting the stack trace. The error occurs in the constructor of your form:

Chris McHenry writes:
Exception Source: Integro.OutlookAddin
Exception Type: System.NullReferenceException
Exception Message: Object reference not set to an instance of an object.
Exception Target Site: .ctor

---- Stack Trace ----
Integro.OutlookAddin.OlFormExistingMessage..ctor()
AddinExpress.OL.2005.dll: N 0170 (0xAA) IL



Andrei Smolin
Add-in Express Team Leader
Posted 03 Apr, 2013 05:39:35 Top
Chris McHenry




Posts: 11
Joined: 2010-08-24
Thanks Andrei,

I see that it's an issue in my constructor (I assume it's some dependency that is not being installed correcly since I can run it fine in the debugger). Is there anyway that AddIn Express loader can be configured to display the Inner Exception?

Chris
Posted 03 Apr, 2013 12:03:12 Top
Chris McHenry




Posts: 11
Joined: 2010-08-24
Does the 7.0.4023 adxloaderx64.dll change the order of events that are fired? It seems that it's not firing the AddinModule_AddinInitialize before the constructors on our forms are called? The form constructors require some setup in the AddinIntialize method that's why we're getting the null reference exception. I was able to confirm this when stepping through with the debugger.

Seems to only be a problem in Release Mode and not Debug mode? When I downgraded to version 6.3.3052 it works again.
Posted 03 Apr, 2013 18:57:39 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Chris,

The order of these events isn't defined. The difference is caused by modifications in Add-in Express. I recommend that you use the ADXOlFormsManager.Initialize event which is guaranteed to occur before any form instance is created. Similarly, the ADXBeforeFormInstanceCreate event is guaranteed to fire on the corresponding ADXOlFormsCollectionItem before every form instance is created.


Andrei Smolin
Add-in Express Team Leader
Posted 04 Apr, 2013 08:10:56 Top
Chris McHenry




Posts: 11
Joined: 2010-08-24
Andrei,

Thanks for your response. I

Is it true then that we can't count on the AddinInitialize event to fire before other components are loaded? It's a big concern to me because I would think that the AddinInitialize event is provided to us to do all your setup before other components are loaded? Why would there be a difference between x86 and x64 of the exact same version of Addin Express? Seems like that would force us to write two versions of our code to support both platforms.

Also from the documentation, we see that one of the first things the loader does is call AddinInitialize:
The loader initializes CLR (Common Language Runtime), reads the manifest, creates an AppDomain, loads your assembly into the domain, and creates an instance of your add-in module (this runs the constructor of the module). Then the loader generates the AddinInitialize and AddinStartupComplete events of the module, connects the module to events of the host application and waits for the event that specifies the end of the job.


Thanks,
Chris
Posted 04 Apr, 2013 10:49:55 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Chris,

Can you please add AddinExpress.OL.Log.AddMessage() calls to AddinInitialize event of the module, OnIntialize event of the ADXOlFormsManager and to the constructor of the form? Then just before the xception occrs, please add AddinExpress.OL.Log.ShowMessages("log"), this opens the log and allows saving the messages; can you please send them to the support email address?

private void adxOlFormsManager1_OnInitialize()
{
    AddinExpress.OL.Log.AddMessage("___ adxOlFormsManager1_OnInitialize begin");
    // your code
    AddinExpress.OL.Log.AddMessage("___ adxOlFormsManager1_OnInitialize end");
}

private void AddinModule_AddinInitialize(object sender, EventArgs e)
{
    AddinExpress.OL.Log.AddMessage("___ AddinModule_AddinInitialize begin");
    // your code
    AddinExpress.OL.Log.AddMessage("___ AddinModule_AddinInitialize end");
}



Andrei Smolin
Add-in Express Team Leader
Posted 05 Apr, 2013 08:10:09 Top