locked
Anyone know the ActiveSync size limit for Sending? RRS feed

  • Question

  • I noticed that I have quite a few Event ID 1008 Warnings on my Exchange server today.  All of them are exactly the same and are all for the same user.  They occur every 5-10 min.  So I have discovered through research that this is caused (at least in this case) by a message being sent from the mobile device (iPhone in this case) that is to big.

    I have run a test on my own device (Droid X) where I attempted to send a message with a 14MB attachment.  The exact error is logged at the same time as the other intial error.  This is easy enough to fix: you simply need to go to the Outbox on the phone or device and delete the stuck message. 

    However, I am now currious where this limit is set and how to find the exact size limit.  Through searching no one seems to know, but the limit is deteremined somewhere between 5-10MB.  Also, it is not set in Exchange as others like to recommend.  My send connector message size is 50MB and there is no limit set on the ActiveSync policy.

    Anyone know the answer to this?  Is it an Exchange setting or is it determined by the particular phone/tablet?\

    Thanks.

    Event 1008 for others reference:

    An exception occurred and was handled by Exchange ActiveSync. This may have been caused by an outdated or corrupted Exchange ActiveSync device partnership. This can occur if a user tries to modify the same item from multiple computers. If this is the case, Exchange ActiveSync will re-create the partnership with the device. Items will be updated at the next synchronization.

    URL=/Microsoft-Server-ActiveSync/default.eas?User=USERNAME&DeviceId=ApplC8WFDD8DDDP7&DeviceType=iPhone&Cmd=SendMail&SaveInSent=T

    --- Exception start ---

    Exception type: System.Web.HttpException

    Exception message: Maximum request length exceeded.

    Exception level: 0

    Exception stack trace: at System.Web.HttpRequest.GetEntireRawContent()

    at System.Web.HttpRequest.get_InputStream()

    at Microsoft.Exchange.AirSync.Command.get_InputStream()

    at Microsoft.Exchange.AirSync.Command.WorkerThread()


    • Edited by mac1234 Thursday, February 9, 2012 8:35 PM
    Thursday, February 9, 2012 8:34 PM

Answers

  • Looks like I found the probable location of this size limit.  Looking at the web.config file in the ExchServer\ClientAccess\Sync folder there is an entry for "MaxDocumentDataSize".  THe value is currently set at 10240000:

    <add key="MaxDocumentDataSize" vaulue ="10240000">

    So this is 9.75 MB or there about, which sounds about right.  I will try increasing this limit at some point to verify.

    Can anyone confirm this?

    Friday, February 10, 2012 6:57 PM

All replies

  • The attachments are uploaded as an HTTP POST so you could be hitting limits in IIS perhaps? The limit for IIS 7.5 should be 30mb, but you don't mention which version you are running - I assume the limit could be lower for IIS 6/7.
    • Proposed as answer by Peddy1st Friday, February 10, 2012 7:16 PM
    Thursday, February 9, 2012 11:20 PM
  • We are using IIS is version 7.  Anyway to increase the HTTP POST limit? 

    Friday, February 10, 2012 6:33 PM
  • Looks like I found the probable location of this size limit.  Looking at the web.config file in the ExchServer\ClientAccess\Sync folder there is an entry for "MaxDocumentDataSize".  THe value is currently set at 10240000:

    <add key="MaxDocumentDataSize" vaulue ="10240000">

    So this is 9.75 MB or there about, which sounds about right.  I will try increasing this limit at some point to verify.

    Can anyone confirm this?

    Friday, February 10, 2012 6:57 PM
  • this is a nice finding,  I would also check it in my lab. 

    Where Technology Meets Talent

    Friday, February 10, 2012 10:09 PM
  • Please let me know your results.  I will do the same - it would be nice to have confirmation from several.
    Monday, February 13, 2012 4:15 PM
  • mac 

    so by doing this you can limit the user not send an attachment more than 10 MB even though he/she has 15MB of attachment allowed?


    Where Technology Meets Talent

    Tuesday, February 14, 2012 8:08 PM
  • This is what it appears to be.  ActiveSync has it's own size limit that is separate than what the Exchange limits are.
    Monday, February 27, 2012 10:45 PM
  • Where does one find that file or setting, within IIS Manager or elsewhere? I ran searches for folders "clientaccess" and "sync" as well as just web.config but no luck. Oh this is on SBS 2008 SP2 / Exchange 2007 and the affected user has an Android phone using Activesync that fails to sync the Calendar only. Everything else seems to be working. 

    Monday, March 26, 2012 8:58 PM
  • We were facing the similar issue & we resolved it by following below solution:

    http://msexchange.me/2013/07/26/exchange-active-sync-message-size-limit/


    Sukhija Vikas

    Sunday, March 9, 2014 3:19 PM
  • Hi ALL

    I have the same Issue.

    2 cas servers and 2 mailbox servers. I have changed the maxdocumentdatasize to 50240000 and the maxrequestlenght to 49062 in web.config (c:\program files\microsoft\exchange server\v15\Clientaccess\sync) on the 2 cas servers. Rebooted both servers, but still I cant download or send files larger than 10 mb on mobil phone.


    LS

    Wednesday, April 30, 2014 7:05 AM
  • Please see this document on how to configure ActiveSync-specific message size limits on each server:

    https://technet.microsoft.com/en-us/library/hh529949(v=exchg.160).aspx

    ActiveSync

    Services Configuration file Keys and default values Size

    Client Access (frontend)

    %ExchangeInstallPath%FrontEnd\HttpProxy\Sync\web.config

    maxAllowedContentLength="30000000"   Not present by default (see comments).

    bytes

    Client Access (frontend)

    %ExchangeInstallPath%FrontEnd\HttpProxy\Sync\web.config

    maxRequestLength="10240"

    kilobytes

    Backend

    %ExchangeInstallPath%ClientAccess\Sync\web.config

    maxAllowedContentLength="30000000 bytes"   Not present by default (see comments).

    bytes

    Backend

    %ExchangeInstallPath%ClientAccess\Sync\web.config

    maxRequestLength="10240"

    kilobytes

    Backend

    %ExchangeInstallPath%ClientAccess\Sync\web.config

    <add key="MaxDocumentDataSize" value="10240000">

    bytes

    A more general document on message size limits in Exchange can be found here:

    https://technet.microsoft.com/en-us/library/bb124345(v=exchg.160).aspx


    Tuesday, August 29, 2017 5:55 PM