locked
Recipient object failed to resolve RRS feed

  • Question

  • Hi,

    I have developed an addin , in the code i am creating recipient object by using Name.

    Dim recep As Outlook.Recipient = Nothing
    Try
    recep = Me.app.Session.CreateRecipient(Name)

            recep .Resolve()

    if(recep.resolved) Then 

    end if
    Catch e As System.Exception
    End Try
    System.Runtime.InteropServices.Marshal.ReleaseComObject(recep)

    Note that app object is initialised fine here and is of type Microsoft.Office.Interop.Outlook.Application

    The recep object is being resolved for most of the user in the organisation , but for 5-6 users its not. i have checked the names for which its failing does exist in address book.

    Is there any other reason, why recep objcet is failed to resolve or anything i can check directly in outlook or anything to look in active directory?

    Thanks

    Tuesday, May 20, 2014 10:45 AM

Answers

  • Hello,

    Do you use an Exhange server or IMAP account? If so, did you configure the cached mode in Outlook?

    Try to use the Add method of the Recipients class instead. Does it work?

    Tuesday, May 20, 2014 12:28 PM
  • Make sure that problematic users have the cached mode turned on.
    Tuesday, May 20, 2014 1:43 PM

All replies

  • Hello,

    Do you use an Exhange server or IMAP account? If so, did you configure the cached mode in Outlook?

    Try to use the Add method of the Recipients class instead. Does it work?

    Tuesday, May 20, 2014 12:28 PM
  • Thanks for you reply

    Yes, we use Exchange server , yes, cache mode is configured.

    I can try using Add method. But what's the issue with CreateRecipient, As it work fine for most of the user and recipient is resolved fine. its only 5-6 users for which it did not work.

    Tuesday, May 20, 2014 1:03 PM
  • Make sure that problematic users have the cached mode turned on.
    Tuesday, May 20, 2014 1:43 PM