Microsoft KB Archive/930855

= You do not receive e-mail messages in Microsoft Dynamics CRM 3.0, and events are logged on the Exchange server: &quot;Connection to mailbox: CRMRouterMailbox failed&quot; =

Article ID: 930855

Article Last Modified on 8/15/2007

-

APPLIES TO


 * Microsoft Dynamics CRM 3.0

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry





SYMPTOMS
You do not receive e-mail messages in Microsoft Dynamics CRM 3.0. Additionally, on a server that is running Microsoft Exchange Server, events that resemble the following events are logged in the Application log every minute: Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceException:

Connection to mailbox: CRMRouterMailbox failed (System.Runtime.InteropServices.COMException (0x80040E19):

Object or data matching the name, range, or selection criteria was not found within the scope of this operation.

at ADODB.ConnectionClass.Open(String ConnectionString, String UserID, String Password, Int32 Options)

at Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceMessages.GetMailboxConnection(ExchangeSinkServiceLogger logger, ExchangeSinkServiceMailbox mailbox, Int32 connectionTimeout)).

---> System.Runtime.InteropServices.COMException (0x80040E19): Object or data matching the name, range, or selection criteria was not found within the scope of this operation.

at ADODB.ConnectionClass.Open(String ConnectionString, String UserID, String Password, Int32 Options)

at Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceMessages.GetMailboxConnection(ExchangeSinkServiceLogger logger, ExchangeSinkServiceMailbox mailbox, Int32 connectionTimeout)

--- End of inner exception stack trace ---

at Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceMessages.GetMailboxConnection(ExchangeSinkServiceLogger logger, ExchangeSinkServiceMailbox mailbox, Int32 connectionTimeout)

at Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceCore.ProcessMailbox(ExchangeSinkServiceMailbox mailbox)

at Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceCore.ExecuteService For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.



CAUSE
This problem occurs if the mailbox settings in the connection information in the registry are incorrect. When these settings are incorrect, the Microsoft CRM-Exchange E-Mail Router service cannot find the correct mailbox. This service runs every 60 seconds.



RESOLUTION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this problem, make sure that the connection information in the registry is correct. To do this, follow these steps:  On the Exchange server, click Start, click Run, type regedit, and then click OK. Locate and then click the following registry subkey:

 Right-click MailboxAccount, and then click Modify. In the Value data box, review the following data to make sure that it is correct:

\

Note In this data,  is the name of the domain that the Exchange server hosts. And,  is the name of the mailbox account that is not receiving messages. Right-click MailboxNickName, and then click Modify. In the Value data box, make sure that the name of the mailbox account is correct.</li> Locate and then click the following registry subkey:

</li> Right-click MailboxesInfo, and then click Modify.</li> In the Value data box, review the following data to make sure that it is correct:

http:// ; ; ;

For example, you may see the following data in the Value data box:

http://CRMWeb01;EXCH01;adventure-works.local;crmmail

</li> On the File menu, click Exit.</li> Click Start, click Run, type Services, and then click OK.</li> Right-click Microsoft CRM-Exchange E-Mail Router Service, and then click Restart.</li></ol>

<div class="workaround_section">

WORKAROUND
To work around this problem, you can reinstall the Microsoft CRM-Exchange E-mail Router service. When you do this, the connection information registry settings will be overwritten with the correct data. However, when you reinstall this service, e-mail messages that have not been processed are deleted from the mailbox on the Exchange server.

Keywords: kbmbsemail kbtshoot kbmbsmigrate kbprb KB930855

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.