【发布时间】:2014-10-12 21:39:51
【问题描述】:
我有一个 Excel 插件,它曾经完美地工作过。 最近有很多客户收到如下错误(在本题末尾)。
环境详情:
- Windows 7/8 64 位。
- Microsoft Office 2013 64 位
- 插件在.net 3.5下编译
我们将不胜感激。
HRESULT 异常:0x8004063E
********** 异常文本 ********** System.Runtime.InteropServices.COMException (0x8004063E):来自 HRESULT 的异常:0x8004063E 在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 错误代码,IntPtr 错误信息) 在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 错误代码,IntPtr 错误信息) 在 Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(字符串解决方案位置,字符串清单名称,字符串文档名称,布尔 showUIDuringDeployment,IntPtr hostServiceProvider,布尔 useFastPath,IntPtr& 执行器) 在 Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IDomainCreator.CreateCustomizationDomain(字符串解决方案位置,字符串 manifestName,字符串 documentName,布尔 showUIDuringDeployment,IntPtr hostServiceProvider,IntPtr& 执行器)
【问题讨论】:
-
一个非常快速的谷歌搜索你的例外提出了这个support.microsoft.com/kb/2022447请在提问之前做一些基础研究。
-
不常见的错误代码。我猜你的用户正在转向 Windows 8,默认情况下没有安装 .NET 3.5。
-
@ZachSpencer 这不是导致问题的原因。如您所见 - kb 谈到了重新发布的加载项,它的目标 .NET 版本已更改,但事实并非如此。
-
@ZachSpencer 另一件事 - kb 讨论文档级插件,而我在谈论应用程序级插件
标签: c# .net office-interop excel-addins office-addins