EWS error 500 on opening Message envelope (apple mail client)

Got a strange error here on Exchange 2007, a Mac Mail clients seams able to login, despite an error its able to send Email
So logon is working, but the client cannt open mail a server error 500, in the traced communication i see all mail headers flyby
So these systems talk to eachother without credential or logon problems.
But when it comes to actually opening a mail envelope (in normal words body) we get this traced on the client:
(note server names and IP's have been removed by xxxxx)

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><soap:Header><t:RequestServerVersion Version="Exchange2007_SP1"/></soap:Header><soap:Body><m:GetItem xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ItemShape><t:BaseShape>IdOnly</t:BaseShape><t:IncludeMimeContent>false</t:IncludeMimeContent></m:ItemShape><m:ItemIds><t:ItemId Id="AAMkADViOTBmYmEwLTQ3MTctNDZlMy1hMDY4LWI2YzA2OWNlNmI2NwBGAAAAAAA0oxxNu8liR6CG/iXNSJxQBwCxv9TeZ18PQ4Nkgt5G1p5JADGE9oOiAACxv9TeZ18PQ4Nkgt5G1p5JAEpSxWsQAAA="/></m:ItemIds></m:GetItem></soap:Body></soap:Envelope>]]></request>
    <status>500</status>
    <responselength>837</responselength>
    <mimetype>XML</mimetype>
    <response><![CDATA[HTTP/1.1 500 Internal Server Error
Date: Wed, 09 May 2012 10:57:41 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Content-Length: 599

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><t:ServerVersionInfo MajorVersion="8" MinorVersion="2" MajorBuildNumber="254" MinorBuildNumber="0" Version="Exchange2007_SP1" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" /></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>An internal server error occurred.</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>]]></response>
    <comment></comment>
  </item>
  <item>
    <time>Wed May 09 13:01:10 CEST 2012</time>
    <url><![CDATA[https://xxxxxxxxxxxxxxxxxxxxxx/EWS/Exchange.asmx]]></url>
    <host ip="xxxxxxxxxxxxxx">xxxxxxxxxxxxxxxx</host>
    <port>443</port>
    <protocol>https</protocol>
    <method>POST</method>
    <path><![CDATA[/EWS/Exchange.asmx]]></path>
    <extension>asmx</extension>
    <request><![CDATA[POST /EWS/Exchange.asmx HTTP/1.1
Host: localhost:1443
User-Agent: Mac OS X/10.7.3 (11D50b); ExchangeWebServices/2.1 (125); Mail/5.2 (1257)
Content-Length: 758
Accept: */*
Content-Type: text/xml; charset=utf-8
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: Keep-Alive


May 9th, 2012 3:55pm

You might want to try to do some testing of EWS with the EWSEditor http://ewseditor.codeplex.com/ that should at least tell you if EWS is working okay or not.

Your patch level for exchange is a little behind eg your only running SP2 roll up 4 while there is a Roll up 5 for SP2 and also there is Service Pack3 and 6 roll-ups that have been released. So you may find the problem your having has been addressed in this service pack or proceeding roll-ups.

Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
May 10th, 2012 8:59am

SP3 is something we where going to deploy soon and some post fixes too.
Its not realy my environment, but i was wondering that too.
I'm not sure however if i will still be around here by the time it gots deployed so i'm not sure i will be able to tell if that solved it.
By looking at the error dough there is a big change 500 internal error.  (what get's updated bij a SP, Exchange internals...  :) 
May 13th, 2012 8:49pm

I would still try testing with a Non Apple client which should tell you is it being caused by the requests from the MAC clients or any client. It will also tell you if the endpoint your using is good. SP3 will update a number of things you should also make sure that all the latest windows and .Net patchs are also applied.

Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
May 14th, 2012 10:03am

I would love to do so, however then i need a pure EWS client with some emulation options. (be able to select which EWS version to use).
There is on the MSDN site such an editor but it cannt also open the mail body (but that app is isnt verry well documented), it was a programming example. Also not all devices talk EWS purely the Apple's however seam to do so.

(EWS is kind of an open interface to Exchange, in contrast to Mapi or activesync)

It would be nice to have a software app that i could run from a PC (intead of a mobile device) so i would be able to also perform a netmon trace
(I know its https but one can decrypt SSL locally with fidler)

Do you happen to know such software that talks purely and only EWS ? (preferably a small application)

May 15th, 2012 2:53pm

Solution in my case: Exchange itself is not working as it should. Performance counters on the Exchange 2007 server were corrupt.

Michel de Rooij found the solution and published it on his blog: http://eightwone.com/2013/01/26/the-case-of-the-not-updating-outlook-for-mac/#comment-11720

That is the solution:

a)    CD %SystemRoot%\System32
b)    Run lodctr /R (/R is case-sensitive) which will rebuild all known counters
c)    Run wmiadap /f which will update the WMI performance classes
d)    Restart the Exchange 2007 server

After that no 500 error with ews, unbelievable but true.

Klaus

Free Windows Admin Tool Kit Click here and download it now
July 4th, 2013 1:42am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics