来自 HRESULT 的异常:0x80029C4A(TYPE_E_CANTLOADLIBRARY) [英] Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)

查看:64
本文介绍了来自 HRESULT 的异常:0x80029C4A(TYPE_E_CANTLOADLIBRARY)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 windows 2003 机器上创建 windows 服务,使用 dsofile 修改一堆文档的自定义属性.这工作正常,直到我在 win2k8 机器上安装该服务,它给我以下错误:

I'm creating a windows service on a windows 2003 machine, using dsofile to modify custom properties on a bunch of documents. This works fine until I install the service on a win2k8 machine where it gives me the following error:

错误 [2010-09-06 13:17:12,317] 一个发生未知错误:System.InvalidCastException:无法类型转换 COM 对象'DSOFile.OleDocumentPropertiesClass'接口类型'DSOFile._OleDocumentProperties'.这个操作失败,因为COM 上的 QueryInterface 调用带有 IID 的接口的组件'{58968145-CF01-4341-995F-2EE093F6ABA3}'由于以下错误而失败:加载类型库/DLL 时出错.(来自 HRESULT 的异常:0x80029C4A(TYPE_E_CANTLOADLIBRARY)).

ERROR [2010-09-06 13:17:12,317] An unknown error occured: System.InvalidCastException: Unable to cast COM object of type 'DSOFile.OleDocumentPropertiesClass' to interface type 'DSOFile._OleDocumentProperties'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{58968145-CF01-4341-995F-2EE093F6ABA3}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

我所有的项目都设置为以 x86 运行,我使用 procmon 监视请求的文件而没有任何线索..任何人对如何解决这个问题有任何想法吗?

All my projects are set to run as x86, and Ive used procmon to monitor the files requested without any clues.. Anyone have any ideas on how to solve this?

推荐答案

既然你提到你是在Win2008下运行服务,

Since you have mentioned that you are running a service under Win2008,

  • 第一个线索是,DSO File dll组件是Office的一部分,什么版本?安装了吗?
  • 我不确定服务是否可以访问以系统帐户用户身份运行的办公组件,该组件在作为服务在所述帐户下运行时可能会受到恶意攻击...
  • TYPE_E_CANTLOADLIBRARY 应该是第一个选项的结果...
  • The first clue is, is the DSO File dll component part of Office, what version? is that installed?
  • I am not sure if a service can access such a office component running as a system account user which could be open to malicious exploits whilst running under said account as a service...
  • TYPE_E_CANTLOADLIBRARY should be as a result of the first option given...

这篇关于来自 HRESULT 的异常:0x80029C4A(TYPE_E_CANTLOADLIBRARY)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆