Link to home
Start Free TrialLog in
Avatar of ImImIn
ImImInFlag for United States of America

asked on

Receiving 1040 application log error.

I am getting a 1040 event log application error at various time intervals (usually every 15-20 minutes or so).
Not sure how to make sure the firewall configuration is set to work correctly with Exchange ActiveSync and direct push technology (make sure that your firewall is configured so that requests to Exchange ActiveSync do not expire before they have the opportunity to be processed)?  Thank you!

Log Name:      Application
Source:        MSExchange ActiveSync
Date:          5/19/2015 11:37:53 AM
Event ID:      1040
Task Category: Requests
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      BCSERVER.bc.local
Description:
The average of the most recent heartbeat intervals [470] for request [Sync] used by clients is less than or equal to [540].
Make sure that your firewall configuration is set to work correctly with Exchange ActiveSync and direct push technology. Specifically, make sure that your firewall is configured so that requests to Exchange ActiveSync do not expire before they have the opportunity to be processed.
ASKER CERTIFIED SOLUTION
Avatar of Jeffery Hayes
Jeffery Hayes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ImImIn

ASKER

I increased the "TCP Connection Inactivity Timeout"  on the HTTPS (WAN to LAN) firewall rule (Sonicwall-Windows firewall is disabled) and this did not improve the performance.

I will configure per your suggestion above (for ActiveSync is working) on the registry but if you have any other suggestions without having to do this i would be grateful.
Avatar of ImImIn

ASKER

I don't see a 'MasSync' in "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MasSync\Parameters" path?
Did you read this link?

https://support.microsoft.com/en-us/kb/905013

The following table contains the values that can be modified as they relate to the heartbeat interval. These registry values are not present in a fresh installation of Exchange Server 2003 SP2. The server reverts to hard-coded defaults if these registry values are missing. The administrator must manually create these registry values if he or she wants to set the values. These values can be set in the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MasSync\Parameters


Looks like you might have to create the values as what version of Exchange are you running from my understanding are you on Small Business Server?

However this guy made the change and still had the issue.

http://www.jasonslater.com/2008/11/18/dealing-with-event-id-1040-ms-exchange-activesync/ 


Here's another Experts Exchange answer for this previously.

https://www.experts-exchange.com/questions/27922346/Exchange-2010-Event-1040-MSExchange-ActiveSync-Android-Devices.html
Avatar of ImImIn

ASKER

Yes, I read the article, ran accross this before I ever submitted ticket to ME.
I am on Exchange 2010 (SBS 2011), do you know if this will work on Exchange 2010?
Avatar of ImImIn

ASKER

OK...
I tried the following on my Exchange 2010:

Release version of Exchange 2007

    1) In Notepad, open the Sync web.config file on the Client Access Server. By default, that location is under \Program Files\Microsoft\Exchange Server\ClientAccess\Sync.
    2) Search for and modify the following values as needed:
    <add key="MinHeartbeatInterval" value="60"></add> <add key="MaxHeartbeatInterval" value="3540"></add>

In creased "MinHeartbeatInterval" to 1800 and decreased "MaxHeartbeatInterval" to 2700.

Do you have any comments on what I did?