2011-03-04 60 views
1

我正在使用CDO和ADODB生成SMIL用於發送MMS消息。一切工作正常,但(我認爲)某些Windows Server後,2008 R2更新,事情就停止了這個工作的錯誤:嘗試訪問字段時ADODB失敗

Unable to cast COM object of type 'System.__ComObject' to interface type 'ADODB.Fields'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00001564-0000-0010-8000-00AA006D2EA4}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

這裏就是它打破:

private const string mcCDOContentLocation = 
    "urn:schemas:mailheader:content-location"; 

part.Fields[mcCDOContentLocation].Value = "SMIL"; 

任何想法?也許有關如何生成SMIL文檔的替代方法?

回答

相關問題