Intermittent 500 error occurs for EWS requests in an Exchange Server 2013 and 2007 coexistence scenario

Original KB number:   3152392

Symptoms

Consider the following scenario:

  • You deploy Exchange Server 2013 and Exchange Server 2007 in a coexistence environment.

  • Either of the following conditions are true:

    • You don't configure a legacy namespace for Exchange Server 2007 EWS traffic.
    • You configure a legacy namespace, but you don't configure your EWS application to utilize Autodiscover.

In this scenario, you intermittently receive 500 error responses from the Exchange Server 2013 mailbox role for EWS traffic that is directed toward mailboxes that are hosted on Exchange Server 2007. These responses can be identified in the Internet Information Services (IIS) log and HttpProxy log of the Exchange Server 2013 Client Access server (CAS) role.

Resolution

To resolve or avoid this problem, you must use a legacy namespace. We strongly recommended that you use Autodiscover. Otherwise, the decision to use the Exchange Server 2013 namespace or the Exchange Server 2007 legacy namespace based on the location of the mailbox would involve a manual effort that will add to administrative overhead.

More information

In an Exchange Server 2013 and Exchange Server 2007 coexistence configuration, legacy namespaces are required for both EWS and OWA services for client connectivity. The proxying of EWS traffic from the Exchange 2013 mailbox server to the Exchange 2007 CAS is unsupported and will cause inconsistent results.

OWA uses silent redirection to the legacy namespace. However, EWS does not support silent redirection. Therefore, the default behavior for Exchange Server 2013 is to proxy the traffic that is directed to legacy servers. While this works as expected for Exchange Server 2010 EWS traffic, it is not reliable in Exchange Server 2007. Instead, you should manually redirect the EWS client traffic to the legacy namespace.

References