我在Windows 2003機器上創建一個Windows服務,使用dsofile修改一堆文件的自定義屬性。異常來自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監測沒有任何線索,要求文件:直到我一個win2k8的機器上安裝的服務,而它給我下面的錯誤這工作得很好。任何人對如何解決這個問題有任何想法?
我覺得dsofile是一個獨立的DLL和實際上並不需要的辦公室才能工作。無論如何,我有辦公室(2007)安裝,所以沒有問題。 – femseks 2010-09-06 11:54:13
我現在使用regsvr32在gac中註冊dsofile.dll,並且似乎解決了這個問題。謝謝你的時間。 – femseks 2010-09-06 11:55:36