Error on ApplyTo-Function

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

Error on ApplyTo-Function
ADXOlFormsCollectionItem.ApplyTo(OutlookApp.ActiveExplorer()) throws an error 
thiede




Posts: 38
Joined: 2016-07-05
Hi,

I get an error on a ApplyTo-function.
This is my Code:


public class AddinModule : ADXAddinModule
    {
        internal Outlook._Application OutlookApp
        {
            get
            {
                return (HostApplication as Outlook._Application);
            }
        }

        internal bool CreateForms() 
        {
            Outlook.Explorer explorer = OutlookApp.ActiveExplorer();
            ADXOlFormsCollectionItem adxOlFormSearch = new ADXOlFormsCollectionItem(components)
                    {[some ObjectInit ...]};

            adxOlFormSearch.ApplyTo(explorer);
        }


I get the following error:


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

AdditionalVersionIdentifier: 
Start Time: 09.03.2017 15:24:39
Standard: AddinExpress.OL.2005, Version=8.4.4395.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Outlook version: 
Exceptions:
===========

ADXOlFormsCollectionItem.ApplyTo: Fehler beim Laden der Typbibliothek/DLL. (Ausnahme von HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
Exception time: 09.03.2017 15:24:48
   bei System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   bei System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   bei System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
   bei AddinExpress.OL.ADXOlFormsCollectionItem.ApplyTo(Object ExplorerOrInspectorObj)

AddinExpress.OL.ADXOlFormsManager error: Fehler beim Laden der Typbibliothek/DLL. (Ausnahme von HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
Exception time: 09.03.2017 15:24:48

AddinExpress.OL.ADXOlFormsManager error: Fehler beim Laden der Typbibliothek/DLL. (Ausnahme von HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
Error occured in ADXOlFormsCollectionItem.ApplyTo . See 'Details' section to get more detailed information about the error.
Detailed technical information follows: 
---
Date and Time:         09.03.2017 15:24:48
Machine Name:          CTHIEDE
IP Address:            [IPv6-Adresse]
Current User:          OS	hiede

Application Domain:    D:leolue-svn-OsSearch850_s01_finalOutlinDebug
Assembly Codebase:     file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
Assembly Full Name:    mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version:      4.0.0.0
Assembly Build Date:   09.10.2016 03:24:21

Exception Source:      mscorlib
Exception Type:        System.Runtime.InteropServices.COMException
Exception Message:     Fehler beim Laden der Typbibliothek/DLL. (Ausnahme von HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
Exception Target Site: InvokeDispMethod

---- Stack Trace ----
   System.RuntimeType.InvokeDispMethod(name As String, invokeAttr As BindingFlags, target As Object, args As Object[], byrefModifiers As Boolean[], culture As Int32, namedParameters As String[])
       AddinExpress.OL.2005.dll: N 00000 (0x0) JIT 
   System.RuntimeType.InvokeMember(name As String, bindingFlags As BindingFlags, binder As Binder, target As Object, providedArgs As Object[], modifiers As ParameterModifier[], culture As CultureInfo, namedParams As String[])
       AddinExpress.OL.2005.dll: N 0492 (0x1EC) IL 
   System.Type.InvokeMember(name As String, invokeAttr As BindingFlags, binder As Binder, target As Object, args As Object[])
       AddinExpress.OL.2005.dll: N 0000 (0x0) IL 
   AddinExpress.OL.ADXOlFormsCollectionItem.ApplyTo(ExplorerOrInspectorObj As Object)
       AddinExpress.OL.2005.dll: N 0046 (0x2E) IL 




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

09.03.2017 15:24:48	1	-- | 
09.03.2017 15:24:48	1	-- | AddinExpress.OL.ADXOlFormsManager error: Fehler beim Laden der Typbibliothek/DLL. (Ausnahme von HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
09.03.2017 15:24:48	1	-- | Exception time: 09.03.2017 15:24:48
09.03.2017 15:24:48	1	-- | 
09.03.2017 15:24:48	1	--ADXExceptionManager.DoError
09.03.2017 15:24:48	1	--*!* ProcessError ADXOlFormsCollectionItem.ApplyTo
09.03.2017 15:24:48	1	-- | 
09.03.2017 15:24:48	1	-- | ADXOlFormsCollectionItem.ApplyTo: Fehler beim Laden der Typbibliothek/DLL. (Ausnahme von HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
09.03.2017 15:24:48	1	-- | Exception time: 09.03.2017 15:24:48
09.03.2017 15:24:48	1	-- | 
09.03.2017 15:24:48	1	ADXXOlExceptionManager.InternalProcessError
09.03.2017 15:24:48	1	ADXOlFormsCollectionItem.ApplyTo
09.03.2017 15:24:42	1	ADXOlFormsCollectionItem.SetExplorerLayout
09.03.2017 15:24:42	1	SetRestoreFromMinimizedState
09.03.2017 15:24:42	1	ADXOlFormsCollectionItem.SetFormClassName
09.03.2017 15:24:42	1	{-DeleteNotVisibleForms
09.03.2017 15:24:42	1	{+DeleteNotVisibleForms
09.03.2017 15:24:42	1	ADXOlFormsCollectionItem.SetExplorerItemTypes
09.03.2017 15:24:42	1	Set explorerAllowedDropRegions
09.03.2017 15:24:42	1	ADXOlFormsCollectionItem.SetCached
09.03.2017 15:24:41	1	
09.03.2017 15:24:41	1	{-Event DoAddinInitialize
09.03.2017 15:24:41	1	--OutlookApplication is null
09.03.2017 15:24:41	1	{+Event DoAddinInitialize
09.03.2017 15:24:41	1	
09.03.2017 15:24:39	1	{-ConnectAddinModuleEvents
09.03.2017 15:24:39	1	--Before connection Point Advise
09.03.2017 15:24:39	1	{+ConnectAddinModuleEvents
09.03.2017 15:24:39	1	SetOwner
09.03.2017 15:24:38	1	--ADXXOlExceptionManager
09.03.2017 15:24:38	1	InitializeClass


Is there a missing reference? Can you help me?

Christopher
Posted 10 Mar, 2017 01:51:41 Top
Andrei Smolin


Add-in Express team


Posts: 14115
Joined: 2006-05-11
Hello Christopher,

Could you please provide a project (any project) reproducing this issue?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 10 Mar, 2017 07:01:26 Top