none
problem with saving mailItem Outlook wih C# RRS feed

  • Question

  • there is a problem with trying save mail item through office outlook 2007

    Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.Runtime.InteropServices.COMException: Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))

    Source Error:
    Line 732:            Microsoft.Office.Interop.Outlook.Application OutlookApp = new Microsoft.Office.Interop.Outlook.Application();
    Line 733:            Microsoft.Office.Interop.Outlook.MailItem Mail = (Microsoft.Office.Interop.Outlook.MailItem)(OutlookApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem));
    Line 734:            Microsoft.Office.Interop.Outlook.Inspector oAddSig = Mail.GetInspector;
    Line 735:            Mail.To = To;
    Line 736:            Mail.CC = CC;

    Tuesday, July 3, 2012 8:04 AM

Answers

  • no interaction with office apps is supported while running in IIS. If you want to send mail from such process, try using Exchange Web Services (EWS).
    Tuesday, July 3, 2012 1:44 PM

All replies