ADODB failure when trying to access Fields

1

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 mcCDOContentLocation =
    "urn:schemas:mailheader:content-location";

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

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

c#
ado.net
ado
adodb
asked on Stack Overflow Mar 4, 2011 by Acanthus • edited May 2, 2017 by Vladimir Vaschenko

1 Answer

0

User contributions licensed under CC BY-SA 3.0