Using Exchange Web Services API

/ Published in: C#
Save to your folder(s)

In order for the code snippet(s) to work, you need to do the following:

1. Go download the EWS API SDK:
2. Install the SDK on your machine. It will install a .dll .xml and walkthrough guide to C:\Program Files\Microsoft\Exchange...
3. Open up your VS project solution and add a reference to the installed DLL

It's important to note that you should use the service.AutodiscoverUrl instead of service.Url because the URL you use may not be the correct URL down the line (due to redirection). If you are using service.Url and you call a method and get a 405 error, switch to the AutodiscoverUrl method instead.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.