troubleshooting Question

Exchange Web Services and Mailboxes with special characters...

Avatar of redparanoid
redparanoid asked on
Exchange.NET Programming
2 Comments1 Solution1141 ViewsLast Modified:
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:

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!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros