解决安装不同版本office后造成的PIA COM组件调用失败
来源:互联网 发布:高通量数据分析是什么 编辑:程序博客网 时间:2024/05/16 17:51
症状:TF400422, TF400423, TF400424: Failed to open in Microsoft Excel (Project, Outlook): Unable to cast COM object of type 'Microsoft.Office.Interop.Excel(Project, Outlook).ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM component for the interface withIID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
如下图:
- 原因: 先后安装了不同版本的office 造成系统注册表键值混乱。
解决方法:
Sounds like you have a problem with your typelib registration. Presumably, the Com interop layer is hitting the registry to try to locate the typelib. It would start by looking under HKEY_CLASSES_ROOT\Interface\{00063001-0000-0000-C000-000000000046}\Typelib.
Removing an Office version and installing an older one, is probably what caused it. The newer version may have left some junk in the registry.
I had the same case, and this is how got over:
Notice the registry keys mentioned eariler:
HKEY_CLASSES_ROOT\Typelib\{00062FFF-0000-0000-C000-000000000046}. There should be a version subkey
If there is more than one version sub key (which is possible if you removed a newer version of Outlook) you should remove the one that refers to the version not installed:
- 解决安装不同版本office后造成的PIA COM组件调用失败
- Office 2013 PIA 组件的GUID
- .Net调用Office Com组件的原理及问题:检索com类工厂组件检索 COM 类工厂中 CLSID 为 {XXX} 的组件失败
- .Net调用Office Com组件的原理及问题检索com类工厂组件检索 COM 类工厂中 CLSID 为 {XXX} 的组件失败
- .Net 调用office 的COM+ 组件 需要的相关配置
- .Net调用Office Com组件的原理及问题
- .Net调用Office Com组件的原理及问题
- .Net调用Office Com组件的原理及问题
- Office PIA:关于Office PIA应用程序的部署
- Office 2000调用.net com组件
- 【转啊转的啊】]关于“Web 创作组件” 解决MS Office 2007找不到Office.zh-cn问题以及VS2008 SP1 安装失败需指定visualwebdeveloperww.msi所在路径
- VC取得COM组件调用失败的错误信息
- 解决vs2008安装问题 Office 2007 Microsoft Visual Studio Web 创作组件 安装失败
- Web服务中调用office pia 操作WORD,EXCEL时需做的设置
- 关于Asp.net中调用不同版本的Excel组件.
- bison、lex版本不同造成的问题
- 解决 win7 注册com组件失败问题
- office 安装失败的解决办法
- 爱迪生如何面对失败
- UVA11134- Fabled Rooks
- Linux下忘记root密码怎么办?
- 某前辈在通信领域十年的总结
- POJ 2488 A Knight's Journey
- 解决安装不同版本office后造成的PIA COM组件调用失败
- 剑指offer 4.3 举例形象化问题3 - 从上到下打印二叉树
- HDU1025 Constructing Roads In JGShining's Kingdom
- 人事管理系统 c语言版
- 机房重构 之 SqlHelper
- Linux命令:locate
- 大数据分析所需要的十大技术
- 剑指offer 4.3 举例形象化问题4-二叉搜索树的后续遍历序列
- 矩阵的转置和乘法操作