c# - ADODB failure when trying to access Fields -
i using cdo , adodb generate smil sending mms messages. working fine (i think) after windows server 2008 r2 updates, things stopped working error:
unable cast com object of type 'system.__comobject' interface type 'adodb.fields'. operation failed because queryinterface call on com component interface iid '{00001564-0000-0010-8000-00aa006d2ea4}' failed due following error: no such interface supported (exception hresult: 0x80004002 (e_nointerface)).
here's breaks:
private const string mccdocontentlocation = "urn:schemas:mailheader:content-location"; part.fields[mccdocontentlocation].value = "smil";
any ideas? maybe alternative on how generate smil documents?
in case having same issue, microsoft provided backwards compatible library, here's solution:
Comments
Post a Comment