开发者

ADODB failure when trying to access Fields

开发者 https://www.devze.com 2023-02-14 23:31 出处:网络
I am using CDO and ADODB to generate SMIL for sending MMS messages. Everything was working fine but (I think) after some Windows Server 2008 R2 updates, things just stopped working with this error:

I am using CDO and ADODB to generate SMIL for sending MMS messages. Everything was working fine but (I think) after some Windows Server 2008 R2 updates, things just stopped working with this error:

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)).

Here's where it breaks:

private const string mcCDOContentLocatio开发者_运维百科n =
    "urn:schemas:mailheader:content-location";

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

Any ideas? Maybe an alternative on how to generate SMIL documents?


In case anyone is having the same issue, Microsoft provided a backwards compatible library, here's the solution:

An ADO application does not run on down-level operating systems after you recompile it on a computer that is running Windows 7 SP 1 or Windows Server 2008 R2 SP 1 or that has KB983246 installed

0

精彩评论

暂无评论...
验证码 换一张
取 消