PC Review


Reply
Thread Tools Rate Thread

"E_Abort" error

 
 
RDA
Guest
Posts: n/a
 
      4th Nov 2010
When I run the below snippet of code on a Vista Enterprise box using
Outlook 2007, the following error occurs:

"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in MyApp.exe.
Additional information: Operation aborted {Exception from HRESULT:
0x80004004 (E_ABORT)}"

The snippet is below and the line where the error occurs is
commented.
I would appreciate any support, tips, or advice. Thanks.


////begin code/////

private void ProcessPosts(MAPIFolder oFldr, MAPIFolder
oDestFldr)

{

int iAttachCnt = 0;

//cycle through each email, filtering out only posts, no
personal emails, calendars, or tasks
string filter = "[MessageClass] = \"IPM.Post\"";
Microsoft.Office.Interop.Outlook.Items oTestItems =
oFldr.Items.Restrict(filter);

for (int i = oTestItems.Count; i > 0; i--)
{

Status("Cycling through discussion email...", 10);

//get post message
PostItem oMessage = (PostItem)oTestItems[i];

//move email
oMessage.Move(oDestFldr);

//get attachment count
iAttachCnt = oMessage.Attachments.Count;

//declare subject variable
string strSubject;

//determine if subject is null and set variable
accordingly
if (oMessage.Subject == null)
{
strSubject = "";
}
else
{
strSubject = oMessage.Subject.ToString();
}

//create emails GUID for table
Guid tmpEmID = Guid.NewGuid();


//ERROR OCCURS HERE at "oMessage"
string sem = oMessage.SenderEmailAddress.ToString();


/////end code////
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error! Error! IE Error! Helpless Windows XP Internet Explorer 1 7th Mar 2004 04:52 PM
Error message NSAPI Internal Error Error Code = 100 Kevin @ kwinters54@yahoo.com Windows XP Internet Explorer 0 5th Feb 2004 10:59 PM
Error, Error, Error. JohnMc Windows XP Basics 0 22nd Dec 2003 12:22 AM
A runtime error has occured. Do you want to debug? Line: 1 Error: syntax error Eric Windows XP Networking 0 24th Nov 2003 04:45 PM
IE 6 RunTime error / Line: 335 / Error: Unspecified Error kwloch Windows XP Internet Explorer 0 27th Sep 2003 02:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:35 AM.