I have an app using the EWS API. Some computers using Exchange 2003 and some use 2007/2010. Initially, in my app I just used:
ExchangeService service = new ExchangeService();
service.UseDefaultCredentials = true;
service.AutodiscoverUrl(url);
But I found out quickly that that fails on the computers using 2003, with the error: "Client mailboxes must be on Exchange Server 2010 or later". So I changed my code to (obviously removed the actual address to the Exchange server):
ExchangeService service = new ExchangeService();
service.UseDefaultCredentials = true;
service.Url = new Uri("https://.....");
Now I get the error: "The mailbox that was requested doesn't support the specified RequestServerVersion.".
So, I think I understand why this is happening and really just seems like I have to do something completely different to get this working on 2003. Except short of using the Net.Mail api instead, I'm not sure exactly how to do it. Can I still use the EWS API and if so, what do I need to change to allow it to work on both?