Microsoft Dynamics CRM 4.0 E-Mail Router unexpectedly stalls


Hi all,

It can happen that for no apparent reason the E-Mail Router sometimes stops working and you can receive the following error in the E-Mail Router machine Application Log:

#26234 - The E-mail Router service could not process a provider work item using assembly:
Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.
System.Threading.ThreadAbortException: Thread was being aborted.
at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteProviderWork(Object providerQueueRequestObject)

#14494 - A provider work item using assembly: 
Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider
has been aborted because it has been running for longer than the allowed execution time. 
This behavior may occur when there is a problem with the network or because the e-mail server is busy.
Verify that you can log on to the e-mail server by using an e-mail application that uses the account specified 
for the E-mail Router.

#26090 - An error occurred while opening mailbox System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetRequestStream()
at Microsoft.Crm.Tools.Email.Providers.HttpDavRequest.SubmitXmlCommand(HttpWebRequest httpWebRequest, String body)
at Microsoft.Crm.Tools.Email.Providers.HttpDavRequest.RetrieveInboxUri()
at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.OpenMailbox()
at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()

If you run the “Test Access” from the Configuration Manager you can also receive a timeout.

This is due to a lack of connections from a .Net perspective when we try to connect to Exchange via HttpDav. For more information, check the following article:;EN-US;915599


In order to resolve this issue please follow these steps :

On the CRM E-Mail Router machine, go to the following folder: %ProgramFiles%\Microsoft CRM Email\Server

1°) Right click on this file : Microsoft.Crm.Tools.Email.Management.config and open it in notepad.

Under the <Configuration> tag, add the following:

<add address="*" maxconnection = "24" />

Save the file.

2°) Still within the same folder, create a file called: Microsoft.Crm.Tools.EmailAgent.exe.config

Edit the file in Notepad and add this content:

<add address="*" maxconnection = "24" />

Save the file and restart the E-Mail Router service (“NET STOP MSCRMEMAIL”, then “NET START MSCRMEMAIL” from a command line)

This should resolve this issue.

Kind regards

Benjamin LECOQ
CRM Escalation Engineer

Skip to main content