1

We have an applicaton which exports the content from exchange server(using outlook) to the XML, we used Redemption for this purpose and everything seems to be fine. But currently we are encountering a COMException as follow:

COMException: Error in IMAPISession::OpenEntry: MAPI_E_TOO_BIG at Redemption.RDOMailClass.get_Subject()

What might be the cause for this kind of excetpion? Is this a Redemption Related or Outlook Related Exception?

E.Vaughan
  • 293
  • 2
  • 13
StartCoding
  • 394
  • 5
  • 16

1 Answers1

2

This is an indication that you open too many objects without releasing them.

Avoid multiple dot notation and release all Redemption objects as soon as you are done with them using Marshal.ReleaseComObject().

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78
  • we are using following code to release the COM Object. private static void NAR(object o) { try { if (o != null) { Marshal.FinalReleaseComObject(o); } } catch { } //finally //{ // o = null; //} } Do we need to use Marshal.ReleaseComObject(o); instead of Marshal.FinalReleaseComObject(o); ? Is this causing the Issue? – StartCoding Oct 22 '13 at 16:28
  • And what is the rest of your code? Are you sure you do not create implicit objects by using multiple dot notation, foreach loops, etc.? – Dmitry Streblechenko Oct 22 '13 at 17:51