Posts 1 - 10 of 15
First | Prev. | 1 2 | Next | Last
|
|
|
|
Daniel Lutz
Posts: 24
Joined: 2023-02-27
|
Hello AddinExpress team,
i have a customer where Microsoft Word crashed through the loading of our addin. The customer repair our setup (which ships the addin express technology) and also repair the .net Framework. We canot reproduce the issue and it seems to be that this customer is currently the only one who can reproduce it.
Exception:
Detailed technical information follows:
---
Date and Time: 12.02.2025 09:51:38
Machine Name:
IP Address:
Current User:
Application Domain: C:Program Files (x86)[NameOfOrAddin]
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
Assembly Full Name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0
Exception Source:
Exception Type: System.ArgumentException
Exception Message: Ein ungültiges übergeordnetes Fenster wurde angegeben.
Exception Target Site: ForwardCallToInvokeMember
---- Stack Trace ----
System.RuntimeType.ForwardCallToInvokeMember(memberName As String, flags As BindingFlags, target As Object, aWrapperTypes As Int32[], msgData As MessageData&)
mscorlib.dll: N 0193 (0xC1) IL
AddinExpress.MSO.ICTPFactory.CreateCTP(CTPAxID As String, CTPTitle As String, CTPParentWindow As Object)
mscorlib.dll: N 00000 (0x0) JIT
AddinExpress.MSO.ADXAddinModule.AddCustomTaskPanes(parent As Object, outlookFolderName As String, showError As Boolean)
mscorlib.dll: N 0640 (0x280) IL
The adxloader.log also:
Add-in Express Loader Log File: 02/12/2025 08:49:47:357
Startup directory: C:Program Files (x86)[NameOfOrAddin]
Loader version: 10.2.4714.0
Operating System: Microsoft Windows 10 Professional (build 19045), 64-bit
Process Owner: User
Command Line: "C:Program FilesMicrosoft OfficeRootOffice16WINWORD.EXE" -Embedding
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
------------------------------------------------------------------------
08:49:47:361 4620 4680 Start.
08:49:47:361 4620 4680 The host's version is 16.0.18429.20132
08:49:47:361 4620 4680 Creating a new instance of the add-in loader.
08:49:47:361 4620 4680 Loading mscoree.dll
08:49:47:362 4620 4680 INFO: Assembly codebase - C:Program Files (x86)[NameOfOrAddin][NameOfOrAddin].dll.
08:49:47:364 4620 4680 INFO: Assembly version - 25.0.0.0.
08:49:47:364 4620 4680 Success.
08:49:47:364 4620 4680 Loading the configuration from the system registry.
08:49:47:364 4620 4680 Getting the latest CLR version.
08:49:47:365 4620 4680 The latest CLR version is 'v4.0.30319'.
08:49:47:365 4620 4680 The configuration has been loaded successfully.
08:49:47:365 4620 4680 Runtime version: v4.0.30319.
08:49:47:365 4620 4680 Assembly name: [NameOfOrAddin], PublicKeyToken=C6979FD13A4FC533.
08:49:47:365 4620 4680 Class name: JdrNJKvhtBdH3cDdss.dwCfbC6L9pJ58JpRBg.
08:49:47:365 4620 4680 Registry key: CLSID{644C70AB-2BAB-407D-B9E5-B016B85F72C6}.
08:49:47:365 4620 4680 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
08:49:47:365 4620 4680 Loading CLR: v4.0.30319.
08:49:47:365 4620 4680 Calling CLRCreateInstance method.
08:49:47:365 4620 4680 Success.
08:49:47:365 4620 4680 Calling GetRuntime method.
08:49:47:366 4620 4680 Success.
08:49:47:366 4620 4680 Checking if the hosting API of .NET Framework v4.0 beta is installed.
08:49:47:379 4620 4680 The hosting API is up to date.
08:49:47:379 4620 4680 Calling SetDefaultStartupFlags method.
08:49:47:379 4620 4680 Success.
08:49:47:379 4620 4680 Calling GetInterface method for the CorRuntimeHost interface.
08:49:47:379 4620 4680 Success.
08:49:47:379 4620 4680 Starting CLR...
08:49:47:379 4620 4680 Success.
08:49:47:379 4620 4680 Getting the CLR version.
08:49:47:379 4620 4680 The CLR v4.0.30319 has been initialized successfully.
08:49:47:379 4620 4680 Creating a new domain setup.
08:49:47:380 4620 4680 Success.
08:49:47:380 4620 4680 Getting the add-in directory.
08:49:47:381 4620 4680 Success. The directory is 'C:Program Files (x86)[NameOfOrAddin]'
08:49:47:381 4620 4680 The 'shadow copy' is disabled.
08:49:47:381 4620 4680 Creating a new application domain.
08:49:47:384 4620 4680 Success.
08:49:47:384 4620 4680 Creating an instance of the managed class. Assembly identity: '[NameOfOrAddin], PublicKeyToken=C6979FD13A4FC533'
08:49:47:916 4620 4680 Success.
08:49:47:916 4620 4680 Unwrapping the managed class.
08:49:47:918 4620 4680 Success.
08:49:47:918 4620 4680 Querying the add-in extensibility.
08:49:47:918 4620 4680 Success.
08:49:47:918 4620 4680 Querying the custom task panes.
08:49:47:918 4620 4680 Success.
08:49:47:918 4620 4680 Querying the ribbon extensibility.
08:49:47:918 4620 4680 Success.
08:49:47:918 4620 4680 Querying the form regions.
08:49:47:918 4620 4680 Success.
08:49:47:918 4620 4680 Querying the encryption provider.
08:49:47:918 4620 4680 The 'EncryptionProvider' interface is not supported.
08:49:47:918 4620 4680 Getting the dispid of the 'Dispose' method.
08:49:47:920 4620 4680 Success.
08:49:47:920 4620 4680 Getting the dispid of the 'InitializeLoaderService' method.
08:49:47:920 4620 4680 Success.
08:49:47:920 4620 4680 Invoking the 'InitializeLoaderService' method.
08:49:47:920 4620 4680 Success.
08:49:47:920 4620 4680 The instance of the managed add-in class has been created successfully.
If you need more informations i can research for it.
Best regards
Daniel |
|
|
Posted 13 Feb, 2025 07:39:34
|
|
Top
|
|
|
Daniel Lutz
Posts: 24
Joined: 2023-02-27
|
Addition:
MS Word has also been reinstalled and no other add-ins are installed. The error probably occurs sporadically. |
|
|
Posted 13 Feb, 2025 07:44:02
|
|
Top
|
|
|
Andrei Smolin
Add-in Express team
Posts: 19195
Joined: 2006-05-11
|
Hello Daniel,
Make sure the pane class doesn't contain initializers on class-level complex-type variable, e.g. MyClass myVariable = null. The "= null" part makes .NET to load the assembly that implements that class. The issue occurs if that assembly isn't prepared to be loaded at that moment (for any possible reason). Initialize such variables after the form loads.
Also, check the constructor(s) of the pane class: custom code in the constructor(s) may be responsible for this issue, too.
Regards from Poland (GMT+1),
Andrei Smolin
Add-in Express Team Leader |
|
|
Posted 13 Feb, 2025 15:24:47
|
|
Top
|
|
|
Daniel Lutz
Posts: 24
Joined: 2023-02-27
|
Hello Andrei,
thank you for the hints. We will test it with an modified version and i will come back with the results.
Best regards
Daniel |
|
|
Posted 14 Feb, 2025 11:16:44
|
|
Top
|
|
|
Daniel Lutz
Posts: 24
Joined: 2023-02-27
|
Okay we have currently also the same problem.
// usings
namespace //namespacee
{
public partial class TaskPaneControl : UserControl, ITaskPaneControl
{
private bool _visibleToggled;
public bool HasFocus => Focused || ContainsFocus;
public TaskPaneControl()
{
InitializeComponent();
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
try
{
SystemParameters.StaticPropertyChanged += SystemParameters_StaticPropertyChanged;
}
catch
{
}
userControlInsideTaskPane.LoadSkin();
UpdateAcessibilitySettings();
}
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
if (_visibleToggled)
{
UpdateUI();
_visibleToggled = false;
}
}
protected override void OnVisibleChanged(EventArgs e)
{
base.OnVisibleChanged(e);
_visibleToggled = true;
}
private void SystemParameters_StaticPropertyChanged(object sender, PropertyChangedEventArgs e) => UpdateAcessibilitySettings();
private void UpdateAcessibilitySettings()
{
try
{
if (SystemParameters.HighContrast)
{
panelControl1.Appearance.Options.UseBackColor = false;
panelControl1.Appearance.Options.UseBorderColor = false;
}
else
{
panelControl1.Appearance.Options.UseBackColor = true;
panelControl1.Appearance.Options.UseBorderColor = true;
panelControl1.Appearance.BackColor = System.Drawing.Color.White;
panelControl1.Appearance.BorderColor = System.Drawing.Color.FromArgb(185, 185, 185);
}
}
catch (Exception)
{
panelControl1.Appearance.Options.UseBackColor = true;
panelControl1.Appearance.Options.UseBorderColor = true;
panelControl1.Appearance.BackColor = System.Drawing.Color.White;
panelControl1.Appearance.BorderColor = System.Drawing.Color.FromArgb(185, 185, 185);
}
}
public void UpdateUI() => userControlInsideTaskPane.UpdateUI();
}
}
This is all what we currently done inside the taskpane control |
|
|
Posted 06 May, 2025 08:30:34
|
|
Top
|
|
|
Andrei Smolin
Add-in Express team
Posts: 19195
Joined: 2006-05-11
|
Hello Daniel,
I would try to repair or even reinstall Office on that machine. I've studied the code, and it looks like the ICTPFactory object in your call stack comes from Office.
Regards from Poland (GMT+2),
Andrei Smolin
Add-in Express Team Leader |
|
|
Posted 06 May, 2025 14:59:27
|
|
Top
|
|
|
Daniel Lutz
Posts: 24
Joined: 2023-02-27
|
Hello Andrei,
i could reproduce it now with our currently internal setup on a windows 11 pro hyper v machine. I install Office 2024 and also the latest Office 365 current channel installation clean. And the same error occured
Application Domain:
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
Assembly Full Name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0
Exception Source:
Exception Type: System.Runtime.InteropServices.COMException
Exception Message: Das angegebene ActiveX-Steuerelement kann nicht erstellt werden.
Exception Target Site: ForwardCallToInvokeMember
---- Stack Trace ----
System.RuntimeType.ForwardCallToInvokeMember(memberName As String, flags As BindingFlags, target As Object, aWrapperTypes As Int32[], msgData As MessageData&)
mscorlib.dll: N 0193 (0xC1) IL
AddinExpress.MSO.ICTPFactory.CreateCTP(CTPAxID As String, CTPTitle As String, CTPParentWindow As Object)
mscorlib.dll: N 00000 (0x0) JIT
AddinExpress.MSO.ADXAddinModule.AddCustomTaskPanes(parent As Object, outlookFolderName As String, showError As Boolean)
mscorlib.dll: N 0640 (0x280) IL
|
|
|
Posted 13 Jan, 2026 13:29:41
|
|
Top
|
|
|
Daniel Lutz
Posts: 24
Joined: 2023-02-27
|
|
The adxLoader Log say all stuff is okay |
|
|
Posted 13 Jan, 2026 13:32:22
|
|
Top
|
|
|
Daniel Lutz
Posts: 24
Joined: 2023-02-27
|
Okay it seems to be independ of the bit version of Office. I`ve test it with the latest Office 365 32 and 64 Bit version and a minimal version of our code. I remove all code from the taskpane windows forms user controls (all references and fields) which is directly linked to the ADXTaskPane.ControlProgID properties.
The Taskpane user control have only set a background color for identification nothing else and it breaks with the exception above.
The adxLoader version is 10.3.4730.0
The AddinExpress.MSO.2005 version is the same.
Best regards
Daniel |
|
|
Posted 13 Jan, 2026 19:15:57
|
|
Top
|
|
|
Andrei Smolin
Add-in Express team
Posts: 19195
Joined: 2006-05-11
|
|
|
Posted 14 Jan, 2026 13:26:21
|
|
Top
|
|
|
Posts 1 - 10 of 15
First | Prev. | 1 2 | Next | Last
|