![]() |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi,
I wrote a Windows Services to access Outlook (version 2010) folder programmatically and save email in SQL database. The service reads each email in Outlook Inbox folder and get details of the emails. The service works fine with .NET Framework 2.0 on Windows Server 2003 with Outlook 2010 installed. After I upgraded the service to .NET Framework 4.0 on Windows Server 2008 (64 bit OS) with Outlook 2010 installed, It was no problem to get Subject property of MailItem object, it crashed when it tried to get SenderName and SenderEmailAddress property of MailItem object. I can not catch the exception even try...catch is used. Can you please shed some light on this issue? Thank you. Tony Code: ... folder = mOutlookNamespace.GetDefaultFolder(Outlook.OlDefau ltFolders.olPublicFoldersAllPublicFolders) For intCount = folder.Items.Count To 1 Step -1 folder.Items(intCount).Subject folder.Items(intCount).SenderName (FAILED HERE) folder.Items(intCount).SenderEmailAddress Next ... |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
f_miligi | Outlook | 1 | 02-15-2012 07:23 PM |
![]() |
b0x4it | Word VBA | 2 | 05-26-2011 06:25 AM |
![]() |
diegogeid | Outlook | 3 | 05-21-2011 05:09 PM |
![]() |
userman | PowerPoint | 1 | 09-22-2010 12:33 PM |
Access Object library 10 | Gyto | Office | 0 | 10-09-2008 09:04 AM |