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:

an ado application not run on down-level operating systems after recompile on computer running windows 7 sp 1 or windows server 2008 r2 sp 1 or has kb983246 installed


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -