You may find yourself unable to download attachments on an e-mail message you received on your Android or Apple iPhone from your Microsoft Exchange Server. In my case, this presented a “Unable to download.” with a retry option. Retrying would not work.
If the attachment is larger (over 10MB), this is most likely due to a limit enforced on the Activesync site in IIS on your Exchange Server. In this post I’m going to tell you why this happens, and how to fix it!
Microsoft Exchange uses IIS (Internet Information Server) for numerous services including ActiveSync. ActiveSync provides the connectivity to your mobile device for your Exchange access.
IIS has numerous limits configured to stop massive bogus requests, reduce DDOS attacks, and other reasons.
To resolve this and allow the attachment to download, we need to modify two configuration values inside of the web.config file on IIS.
Below are the values we will be modifying:
These settings are configured in the following file:
C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Sync\web.config
Before modifying the variables, please make a copy or backup of the web.config file so you can restore.
After you make a backup, open the file in notepad (right click -> run as administrator), and open the web.config file.
Simply search for the two values listed above, and change them. In my case, I tripled the “MaxDocumentDataSize”, and the “maxRequestLength” values. Examples from my “web.config” file are below:
add key="MaxDocumentDataSize" value="30720000"
httpRuntime maxRequestLength="30720" fcnMode="Disabled"
After changing these, run the following command from an elevated (as administrator) command prompt to restart IIS:
iisreset
And bam, you’re good to go!
While most of us frequently deploy new ESXi hosts, a question and task not oftenly discussed is how to properly decommission a VMware ESXi host. Some might be surprised to… Read More
This guide will outline the instructions to Disable the VMware Horizon Session Bar. These instructions can be used to disable the Horizon Session Bar (also known as the Horizon Client… Read More
Normally, any VMs that are NVIDIA vGPU enabled have to be manually migrated with manual vMotion if a host is placed in to maintenance mode, to evacuate the host. While… Read More
You may experience GPU issues with the VMware Horizon Indirect Display Driver in your environment when using 3rd party applications which incorrectly utilize the incorrect display adapter. This results with… Read More
Today we're going to cover a powerful little NAS being used with VMware; the Synology DS923+ VMware vSphere Use case and Configuration. This little (but powerful) NAS is perfect for… Read More
Today we'll go over how to install the vSphere vCenter Root Certificate on your client system. Certificates are designed to verify the identity of the systems, software, and/or resources we… Read More
View Comments
Nice post man. Thanks!
Working! Thank you very much sir
Awesome...thank you.
Where do I find c:\program.... on my mobile device?
Hi Larry, these instructions are for desktop PCs.
Thanks for the article Stephen! I made these modifications and still wasn't able to open attachments larger than 2MB. Do you have any suggestions on where to look next?
Hi Marcus,
Did you restart all applicable services to make sure that everything took effect? Also, do you have any other limits configured? What error are you seeing?
Cheers,
Stephen
Oops, I just noticed that you had replied to my question. Sorry for the extended delay! I restarted the services and still no success. The main symptom of the problem is that any email attachments larger than 2MB cannot be opened on mobile devices using Outlook or Apple Mail. I dug through this documentation from Microsoft but wasn't able to find any settings that were misconfigured. https://learn.microsoft.com/en-us/exchange/mail-flow/message-size-limits?view=exchserver-2019
Hi Marcus,
That link you posted is for the message size limits (which is for mail transmission, not ActiveSync). If your devices are failing on downloading the attachments, you need to increase the IIS request sizes as IIS handles ActiveSync access.
Cheers,
Stephen
Hi Stephen,
In addition, I checked all of these settings as well, which includes the settings you mentioned above: https://learn.microsoft.com/en-us/exchange/architecture/client-access/client-message-size-limits?view=exchserver-2019
Are there other settings that need to be configured?
Thanks,
Marcus