redparanoid
asked on
Exchange Web Services and Mailboxes with special characters...
Hello all,
I've been writing code to retrieve calendar info from a room mailbox using Exchange Web Services. I'm able to successfully retrieve info from room mailboxes and user mailboxes alike, but I seem to have hit a snag. My theory is that it has to do with the ampersand in the address... I can confirm that this is the primary address of the room mailbox. I've also made sure that I can access the calendar from outlook.
Here's my code which, once again, works really well on other mailboxes but fails with this one:
Has anyone experienced problems of this kind before? Any chance you might be able to nudge me in the right direction?
TIA!
I've been writing code to retrieve calendar info from a room mailbox using Exchange Web Services. I'm able to successfully retrieve info from room mailboxes and user mailboxes alike, but I seem to have hit a snag. My theory is that it has to do with the ampersand in the address... I can confirm that this is the primary address of the room mailbox. I've also made sure that I can access the calendar from outlook.
Here's my code which, once again, works really well on other mailboxes but fails with this one:
EmailAddressType mailbox = new EmailAddressType();
mailbox.EmailAddress = "r&d@somecompany.org";
DistinguishedFolderIdType[] parentFolderId = new DistinguishedFolderIdType[1];
parentFolderId[0] = new DistinguishedFolderIdType { Id = DistinguishedFolderIdNameType.calendar, Mailbox = mailbox };
Has anyone experienced problems of this kind before? Any chance you might be able to nudge me in the right direction?
TIA!
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Open in new window
I get this response:
"The SMTP address has no mailbox associated with it."
If I remove the escaping code, I get:
Open in new window
But this time, the response I get is:
"The specified folder could not be found in the store."
Am I mistaken in thinking that this could actually an issue with the configuration of this specific resource mailbox, then?