The Exchange 2013 server is not configured for receiving large items through Exchange Web Services (EWS)
Symptoms
- You are performing a granular recovery to an Exchange 2013 server;
- Some items with large attachments are skipped during the recovery;
- The event log contains the following error message:
--------------------
Error code: 2822
Module: 91
LineInfo: 3b81d2186fbe1881
Fields: $module : arx_agent_fork_vs_38751
Message: An HTTP error has occurred while accessing the EWS server. HTTP status code: 507. Response message: Insufficient Storage.
--------------------
Cause
The Exchange 2013 server is not configured for receiving large items through Exchange Web Services (EWS)
Solution
- Increase the message size limits:
Open the Exchange Management Shell (EMS) and enter the following:
Set-TransportConfig -MaxReceiveSize 100MB -MaxSendSize 100MB
Get-SendConnector | Set-SendConnector -MaxMessageSize 100MB
Get-ReceiveConnector | Set-ReceiveConnector -MaxMessageSize 100MB
- Increase the maximum accepted content length:
Navigate to C:\Program Files\Microsoft\Exchange Server\v15\ClientAccess\exchweb\ews
Open the file Web.Config in a text editor.
Go to the end of the file and increase the "maxAllowedContentLength" value to "104857600"
Save the changes.
- In some cases it is necessary to increase the maximum received message size in WCF settings:
Navigate to C:\Program Files\Microsoft\Exchange Server\v15\ClientAccess\exchweb\ews
Open the file Web.Config in a text editor.
Find all XML tags starting with maxReceivedMessageSize=
Change the existing values to maxReceivedMessageSize="104857600"
Save the changes.
Open Command Prompt and type in: cd %windir%\system32\inetsrv
Type: appcmd.exe set config "Default Web Site/ews" -section:requestFiltering -requestLimits.maxAllowedContentLength:104857600
Restart IIS (Run iisreset in Command Prompt).
Restart the Microsoft Exchange Transport service.