Getting a 401 with EWS? Read this before opening a support case!

If your getting a 401 with an API going against Exchange or basically anything then the issue is most likely with your credentials and NOT your code. Instead of jumping to the step of opening a support case do the following: Recheck your login information. Check the user id used, password and domain information. Logins…

0

EWS ServerBusyException – The server is too busy – for you

So… you got an ServerBusyException, eh? You might have seen it thrown as this in your code: Microsoft.Exchange.WebServices.Data.ServerBusyException: The server cannot service this request right now. Try again later. The server is not overloaded overall and the call is reaching EWS and EWS is responding with a throttling error. When you see ServerBusyException in the…

0

Where to get EWSEditor

A while back EWSEditor check-ins were moved to GitHub. Below are the links for download: Here is the main page: https://github.com/dseph/EwsEditor You can click “Clone or Download” to get the code. On the main page there is also link with the text “release” (it has what looks like a price tag to the left). This…

0

Updating Visual Studio generated proxy classes for EWS development.

Something I would like to highlight are issues with generated proxy classes for EWS development. We support Visual Studio generated proxy classes for EWS development – no other proxy generated classes are supported for EWS development.  I’m going to provide some basic information so that you have a starting point for cases involving EWS proxy…

0

About: Exchange service XSD and WSDL

Some developers use tools which work against XSD and WSDL.  Below is some information on the subject. Note that support is provided for proxy class generation only with Visual Studio – this means third party generators are not supported. The XSD is updated per EWS version: EWS schema versions in Exchange https://msdn.microsoft.com/en-us/library/office/dn741586(v=exchg.150).aspx It’s best to…

0

About: Exchange Reporting Services

Exchange Reporting Services provides programmatic access to admin reports with Exchange in O365. The reports you can pull with code are the same ones in the 365 console. Below is information on accessing the Exchange Reporting Services via code. Note that you will need to do a GET and a property formatted URL with an…

0

About: Office 365 Management Activity API

The Office 365 Management Activity API pull information on Exchange and non-Exchange activity across Office 365. From MSDN: The Office 365 Management Activity API provides information about various user, admin, system, and policy actions and events from Office 365 and Azure Active Directory activity logs. Customers and partners can use this information to create new…

0

Sample: C# code to have EWS Managed API code go through Fiddler on the same machine.

Having calls done with the EWS Managed API go through Fiddler is very easy. Below is an example. public static void SetProxyToFiddler(ref ExchangeService oService) { System.Net.WebProxy oWebProxy = null; oWebProxy = new System.Net.WebProxy(“127.0.0.1”, 8888); oService.WebProxy = oWebProxy; } Here is how you might call it: ExchangeService oService = new ExchangeService(); oService.Credentials = new WebCredentials(“test@contoso.com”, “test”);…

0

Want to set Retention tags with EWS?

I put together some information to help with writing code to set retention tags on a folder.  The articles at the end will go over how the retention properties are used in code, one has a sample which shows setting the retention tags on a folder using PowerShell and the EWS Managed API and the…

0