Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-10-2012, 12:55 PM
tz900 tz900 is offline Cannot access most of property of MailItem object on Windows Server 2008 64 bit Windows 7 64bit Cannot access most of property of MailItem object on Windows Server 2008 64 bit Office 2010 64bit
Novice
Cannot access most of property of MailItem object on Windows Server 2008 64 bit
 
Join Date: Apr 2012
Posts: 1
tz900 is on a distinguished road
Default Cannot access most of property of MailItem object on Windows Server 2008 64 bit


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
...
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access most of property of MailItem object on Windows Server 2008 64 bit Using two versions of outlook too access the same exchange server f_miligi Outlook 1 02-15-2012 07:23 PM
Cannot access most of property of MailItem object on Windows Server 2008 64 bit Access to the property of the current table b0x4it Word VBA 2 05-26-2011 06:25 AM
Cannot access most of property of MailItem object on Windows Server 2008 64 bit How can i Share a Calendar via LAN with Outlook 2010 and Win Server 2008 R2 ? diegogeid Outlook 3 05-21-2011 05:09 PM
Cannot access most of property of MailItem object on Windows Server 2008 64 bit how to access a background object userman PowerPoint 1 09-22-2010 12:33 PM
Access Object library 10 Gyto Office 0 10-09-2008 09:04 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft