C#、ExcelDNA、NetOffice を使用して .NET 35 SP1 で記述された Excel アドインがあります。ときどきクライアントから、アドインが Excel から消えたと報告されました。アドインが無効なアドイン リストにあることを確認し、有効にすると再び機能します。ログを確認したところ、SHException が表示されました。何が原因で、それを修正する方法がわからない。ありがとう
私が気付いたことの 1 つは、クライアントが Excel に他のアドインをいくつか持っていることです。.NET 1.1、.NET 2.0、.NET 3.0、NET 35 SP1 も搭載
2012-01-31 07:10:12,672 [1] ERROR Shared.Helper [(null)] - Name:SEHException
Message:External component has thrown an exception.
Target:Int32 IntGetMessageW(System.Windows.Interop.MSG ByRef, System.Runtime.InteropServices.HandleRef, Int32, Int32)
Stack: at MS.Win32.UnsafeNativeMethods.IntGetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
at MS.Win32.UnsafeNativeMethods.GetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
at System.Windows.Threading.Dispatcher.GetMessage(MSG& msg, IntPtr hwnd, Int32 minMessage, Int32 maxMessage)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.Show()
at System.Windows.Window.ShowDialog()
at ExcelAddIn.Connect.ShowRefreshUI(Boolean checkForSettings, Boolean isRefreshAll)