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

查看:707
本文介绍了来自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:


ERROR [2010-09-06 13 :17:12,317]发生
未知错误:
System.InvalidCastException:无法将
类型的COM对象
'DSOFile.OleDocumentPropertiesClass'
转换为接口类型
'DSOFile._OleDocumentProperties'。此
操作失败,因为对具有IID
'{58968145-CF01-4341-995F-2EE093F6ABA3}'的接口的COM
组件上的
QueryInterface调用失败由于以下错误:
加载类型库/ 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和Ive使用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的一部分,什么版本?

  • 我不确定服务是否可以访问以系统帐户用户身份运行的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天全站免登陆