COM 组件调用 QueryInterface 失败原因?
蓝小修 2010-12-15 06:15:24 大家好,请教一个问题: C#调用Microsoft.Office.Outlook.MailItem;并且在程序中用MailItem类做了一些操作。编辑的时候,并且在自己的电脑上操作的时候,没有问题,可是一到其他电脑上就报以下错误,程序并且会自动关闭。
System.InvalidCastException:Unable to cast COM object of type 'System._ComObject' to interface type 'Microsoft.Office.Outlook.MailItem'. This operation failed because the QueryInterface call on the COM component for the interface IID '{00063034-0000-0000-C000-000000000046}'failed due to the following error: No such interface supported(Exception from HRESULT:0x60004002(E_NOINTERFACE)).
at JobsDB.EmailAnalyzerSystem.EmailAnalyzer.AnalyzeAll()
at JobsDB.EmailAnalyzerSystem.MailForm.StartAnalyze(Boolean blnUnsubsribe)
请高手们帮帮忙啊,很急的,先谢谢啦!!!