PC Review


Reply
Thread Tools Rate Thread

access to the items in .pst and exchange behave differently

 
 
Alexander
Guest
Posts: n/a
 
      4th Jan 2006
Environment

server: SBS2003SP1/ExchangeSP2/McAfee antivirus
workstation: WinXP SP2/Outlook 2003 in cashed mode/Norton AV/VS2005

I have 2 identical sets of tasks, one in the .pst file in my home folder on
the server, second in the Exchange in my profile.

Code below will enumerate all task from .pst with out problems. But when I
will try to enumerate task from Exchange task folder, some of the object
will come back as null.
So far my guess that server antivirus some how has affecting enumeration,
but I will greatly appreciate any another suggestions.

Outlook.Application objOutlook = new Outlook.ApplicationClass();
Outlook.NameSpace objNS = objOutlook.GetNamespace("MAPI");

Outlook.MAPIFolder folder = objNS.PickFolder(); // I will select task folder

int total = 0;
int bad = 0;
int good = 0;
foreach (object obj in folder.Items)
{
Outlook.TaskItem item = obj as Outlook.TaskItem;
total++;
if (item == null)
{
bad++;
}
else
{
good++;
}
}

Sincerely,
Alexander


 
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
Why does it behave differently Tony Johansson Microsoft C# .NET 4 8th Feb 2010 10:11 AM
Programs that may behave differently in WinXP SP 2 SteveL Windows XP General 2 17th Aug 2004 05:39 AM
Drop Down Menus Behave Differently flo Windows XP Internet Explorer 1 14th Jan 2004 03:35 PM
Forms in ADP behave differently to regular Access Geoffrey King Microsoft Access ADP SQL Server 1 2nd Dec 2003 07:37 AM
Do threads behave Differently on Windows 98? Codemonkey Microsoft Dot NET Framework Forms 4 31st Oct 2003 03:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:39 PM.