c# - Outlook Interop - MailItem.Sender is Hanging\Freeze -


i use code below msdn link , working in system fetch sender email address. when deploy same code 1 of our dev servers, below line of code hangs\freeze indefinitely without response. after tracing , figured if attribute of sender object accessed it, hangs forever. cache exchange mode turned "on" mail box , running in outlook 2010. have manually downloaded address book outlook din't help. believe not code issue. can 1 help?

https://msdn.microsoft.com/en-us/library/office/ff184624.aspx

sender.addressentryusertype == outlook.oladdressentryusertype. olexchangeuseraddressentry || sender.addressentryusertype == outlook.oladdressentryusertype. olexchangeremoteuseraddressentry

microsoft not recommend, , not support, automation of microsoft office applications unattended, non-interactive client application or component (including asp, asp.net, dcom, , nt services), because office may exhibit unstable behavior and/or deadlock when office run in environment.

if building solution runs in server-side context, should try use components have been made safe unattended execution. or, should try find alternatives allow @ least part of code run client-side. if use office application server-side solution, application lack many of necessary capabilities run successfully. additionally, taking risks stability of overall solution. read more in considerations server-side automation of office article.

a low level api on outlook based supports running code service. can use language implement task (c# , vb.net). microsoft doesn't support such solutions/code officially. if face issue alone, managed code works charm.

see ews managed api, ews, , web services in exchange.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -