Outlook Task Problem RRS feed

  • Question

  • User-346775904 posted

    Hi Guys,

    I am creating an outlook task. i am able to send it without any errors. But the recipient is not able to accept/decline/open the task. please find my code below. (VS 2005)

    Microsoft.Office.Interop.Outlook.Application outlookApp = new Application();
            Microsoft.Office.Interop.Outlook.TaskItem oTask = (Microsoft.Office.Interop.Outlook.TaskItem)outlookApp.CreateItem(OlItemType.olTaskItem);
            oTask.Subject = "This is my task subject";
            oTask.DueDate = Convert.ToDateTime("07/16/2010");
            oTask.StartDate = Convert.ToDateTime("07/16/2010");
            oTask.ReminderSet = true;
            oTask.ReminderTime = Convert.ToDateTime("07/16/2006 02:40:00 PM");
            oTask.Body = "This is the task body";
            oTask.SchedulePlusPriority = "High";
            oTask.Status = OlTaskStatus.olTaskInProgress;
            //Send task via email
            Microsoft.Office.Interop.Outlook.Recipients oRecipients = oTask.Recipients;
            Microsoft.Office.Interop.Outlook.Recipient oReceipient;
            oReceipient = oRecipients.Add("xyz@xyz.com");       
            oReceipient.Type = 1;

    recipient "xyz@xyz.com" is getting following error when he tries to accept/decline/open the task

    "cannot open this item. Outlook cannot do this type of action on this type of attachment"

    cannot open this item. Outlook cannot do this type of action on this type of attachmen"

    Thursday, July 15, 2010 8:26 AM

All replies

  • User1710623990 posted

    Is there any anti-virus software running on the system.

    It seems that the anti-virus software's e-mail scanning functions were affecting the format of the e-mailed task update in such a way that Outlook could not handle it.

    Try disabling the e-mail scanning functionality in the anti virus software.

    Hope that helps Cool

    Friday, July 16, 2010 1:35 AM
  • User-346775904 posted

    I stopped the Antivirus....still same issue :(

    Friday, July 16, 2010 5:38 AM