ews-Id is malformed

Ever tried to get tasks or emails from exchange using ews and faced this weird exception id is malformed. In my case, i had a http get to my ews method which accepted the id as a query string and id contains some special characters like +, / , = .  and all the + characters were replaced by spaces during the http get call. a example id will look like this.

So, it’s very important that you replace the + with %2B while making the get call.

so , whenever you get this error chances are some of the special characters in the id are missing. Taking care of that should solve this exception.

Happy coding…

Leave a Reply

Your email address will not be published. Required fields are marked *