Error
The XML document ended unexpectedly.
Cause
There are several reasons for this error, which are listed and addressed in the following section.
Resolution
Please review the following:
- Check if any devices or software in the network path may apply some sort of restriction. For example, a firewall, WAN accelerator, packet shaper, or routing device, could truncate XML responses larger than a certain size.
- Check the migration error log to determine if the error originates from the Source or Destination system; confirm if (500) Internal Server Error, errors are present before the reported XML error.
- Check IIS logs for (500) Internal Server Error errors.
- Check Exchange event logs.
- Check for the ability to access the mailbox via OWA and access the EWS URL.
- Check authentication settings for the /EWS IIS directory.
- Authentication for EWS:
- Anonymous - Enabled
- Basic - Enabled
- Windows Authentication - Enabled
- Forms - Disabled (Forms cannot be used)
- Authentication for EWS:
- In IIS, double-click on HTTP Response Headers; under Default Web Site, click on Set Common Headers, and ensure the Enable HTTP keep-alive box is checked.
- Check the bindings in IIS. In the IIS Manager, navigate to the Default Web Site. Under Edit Site, select Bindings and ensure the following two bindings are present. If there are others, note and remove them.
- Type: https - Hostname: blank - Port: 443 - IP: *
- Type: http - Hostname: blank - Port: 80 - IP: *
- If the Source is an Exchange 2007 SP2+, check the IIS logs for (500) Internal Server Error, errors for SoapAction=GetItem;Version.
For example:
2017-02-07 00:03:51 192.168.99.99 POST /ews/exchange.asmx SoapAction=GetItem;Version=0;RpcC=7;RpcL=0;LdapC=4;LdapL=47; 443 domainname\admin 192.168.99.88 - 500 0 0 265
This may be the result of performance counters being corrupted. Please review the following Microsoft Knowledge Base (KB) article: Blackberry InternetService (BIS) devices no longer receive email after upgrade to Exchange Server2007 Service Pack 2