When changing position of region in Outlook explorer, an exception is fired.

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

When changing position of region in Outlook explorer, an exception is fired.
 
wehbi




Posts: 76
Joined: 2013-10-31
Hi Add-In Express team,

when I change the position of a region in the Outlook explorer via drag and drop, the following .NET exception is fired, this will not happen with the region in the mail inspector.


Informationen ?ber das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.InvalidOperationException: Die Auflistung wurde ge?ndert. Der Enumerationsvorgang kann m?glicherweise nicht ausgef?hrt werden.
bei System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
bei AddinExpress.OL.ADXOlFormsManager.ExplorerFormsHideShow(ADXOlFormsCollectionItem item)
bei AddinExpress.OL.ADXOlFormsCollectionItem.ExplorerFormsHideShow()
bei AddinExpress.OL.ADXOlFormsCollectionItem.set_ExplorerLayout(ADXOlExplorerLayout value)
bei AddinExpress.OL.ADXOlForm.SetDragForm(AdxItemType AItemType, ADXWindowLayout ALayout)
bei AddinExpress.Extensions.ADXForm.WndProc(Message& m)
bei AddinExpress.OL.ADXOlForm.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1076.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
----------------------------------------
com.befine_solutions.cs4outlook
Assembly-Version: 2.1.3.68.
Win32-Version: 2.1.3.0068.
CodeBase: file:///C:/DEVELOPMENT_SPACE/Workspace/Visual_Studio_2015/cs4o/com.befine-solutions.cs4o.cs4outlook/bin/Debug/com.befine_solutions.cs4outlook.DLL.
----------------------------------------
AddinExpress.MSO.2005
Assembly-Version: 8.1.4350.0.
Win32-Version: 8.1.4350.0.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.MSO.2005/8.1.4350.0__4416dd98f0861965/AddinExpress.MSO.2005.dll.
----------------------------------------
System
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Configuration
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Core
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Xml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1067.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
NLog
Assembly-Version: 4.0.0.0.
Win32-Version: 4.2.0.
CodeBase: file:///C:/DEVELOPMENT_SPACE/Workspace/Visual_Studio_2015/cs4o/com.befine-solutions.cs4o.cs4outlook/bin/Debug/NLog.DLL.
----------------------------------------
System.Windows.Forms
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
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.6.1068.2 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.ServiceModel
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll.
----------------------------------------
System.Data
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll.
----------------------------------------
System.Runtime.Serialization
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll.
----------------------------------------
AddinExpress.OL.2005
Assembly-Version: 8.1.4357.2005.
Win32-Version: 8.1.4357.2005.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.OL.2005/8.1.4357.2005__e69a7e0f3592d2b8/AddinExpress.OL.2005.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.
----------------------------------------
WindowsBase
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1073.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll.
----------------------------------------
PresentationFramework
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1073.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll.
----------------------------------------
PresentationCore
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1073.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll.
----------------------------------------
Microsoft.GeneratedCode
Assembly-Version: 1.0.0.0.
Win32-Version: 4.6.1067.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
Microsoft.GeneratedCode
Assembly-Version: 1.0.0.0.
Win32-Version: 4.6.1067.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
BefineSolutions.Cryptshare.API
Assembly-Version: 2.0.0.17.
Win32-Version: 2.0.0.17.
CodeBase: file:///C:/DEVELOPMENT_SPACE/Workspace/Visual_Studio_2015/cs4o/com.befine-solutions.cs4o.cs4outlook/bin/Debug/BefineSolutions.Cryptshare.API.DLL.
----------------------------------------
Microsoft.GeneratedCode
Assembly-Version: 1.0.0.0.
Win32-Version: 4.6.1067.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
Microsoft.GeneratedCode
Assembly-Version: 1.0.0.0.
Win32-Version: 4.6.1067.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
Microsoft.GeneratedCode
Assembly-Version: 1.0.0.0.
Win32-Version: 4.6.1067.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
Microsoft.GeneratedCode
Assembly-Version: 1.0.0.0.
Win32-Version: 4.6.1067.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Xaml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1073.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll.
----------------------------------------
WindowsFormsIntegration
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll.
----------------------------------------
WpfPageTransitions
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.0.0.
CodeBase: file:///C:/DEVELOPMENT_SPACE/Workspace/Visual_Studio_2015/cs4o/com.befine-solutions.cs4o.cs4outlook/bin/Debug/WpfPageTransitions.DLL.
----------------------------------------
PresentationFramework.Aero
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll.
----------------------------------------
Tomers.WPF.Localization
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.0.0.
CodeBase: file:///C:/DEVELOPMENT_SPACE/Workspace/Visual_Studio_2015/cs4o/com.befine-solutions.cs4o.cs4outlook/bin/Debug/Tomers.WPF.Localization.DLL.
----------------------------------------
PresentationCore.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationCore.resources/v4.0_4.0.0.0_de_31bf3856ad364e35/PresentationCore.resources.dll.
----------------------------------------
SMDiagnostics
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
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.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll.
----------------------------------------
Microsoft.VisualStudio.Diagnostics.ServiceModelSink
Assembly-Version: 4.0.0.0.
Win32-Version: 14.0.23107.0.
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.IdentityModel
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
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.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.
----------------------------------------
Microsoft.GeneratedCode
Assembly-Version: 1.0.0.0.
Win32-Version: 4.6.1067.0 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Net.Http
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll.
----------------------------------------
System.Xml.Linq
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll.
----------------------------------------
PresentationFramework-SystemCore
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemCore/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemCore.dll.
----------------------------------------
PresentationFramework-SystemXmlLinq
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXmlLinq/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXmlLinq.dll.
----------------------------------------
PresentationFramework-SystemXml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1055.0 built by: NETFXREL2.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

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

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

Thank you and kind regards,
Birger
Posted 18 Apr, 2016 06:42:49 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Birger,

How can I reproduce this? From what layout do start the drag-drop operation? In what layout do you complete it?


Andrei Smolin
Add-in Express Team Leader
Posted 18 Apr, 2016 08:11:23 Top
wehbi




Posts: 76
Joined: 2013-10-31
Hello Andrei,

it seems to be in conjunction with the used element host and the WPF ui. I set up a new project and the region do not throw an exception when change it's position.
I will inform you as soon as i know what the problem causes.

Regards,
Birger
Posted 19 Apr, 2016 01:32:52 Top
wehbi




Posts: 76
Joined: 2013-10-31
It was caused by setting the form to enabled = false when the AfterFormHide event was triggered.
Sorry for starting this thread...

Regards,
Birger
Posted 19 Apr, 2016 02:57:22 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Oh, absolutely no problem.


Andrei Smolin
Add-in Express Team Leader
Posted 19 Apr, 2016 04:44:21 Top