Error message when you try to move mailboxes to or from Office 365 in a hybrid deployment: "Exception has been thrown by the target"

Article translations Article translations
Article ID: 2669562 - View products that this article applies to.

Not sure what release of Office 365 you're using? Go to the following Microsoft website:
Am I using Office 365 after the service upgrade?
Expand all | Collapse all

PROBLEM

You have a hybrid deployment of Microsoft Exchange Online in Microsoft Office 365 and your on-premises Microsoft Exchange Server environment. When you try to move mailboxes to or from Office 365, you receive the following error message:

Exception has been thrown by the target of an invocation.
You were previously able to successfully move mailboxes to or from Office 365 and your on-premises Exchange Server environment. You experience this symptom only after you upgrade the on-premises environment from Exchange Server 2010 Service Pack 1 (SP1) to Exchange Server 2010 Service Pack 2 (SP2).

CAUSE

This issue occurs if the Web.config file was overwritten during the upgrade from Exchange Server 2010 Service SP1 to Exchange Server 2010 SP2. Remote mailbox moves requires the Mailbox Replication Proxy (MRSProxy) service endpoint to be enabled on the Client Access server. In Exchange Server 2010 and in Exchange Server 2010 SP1, the MRSProxy setting is configured in the Web.config file.

In Exchange Server 2010 SP2, the MRSProxy settings are stored in Active Directory and are configured by using the Set-WebServicesVirtualDirectory Windows PowerShell cmdlet.

Note There are several possible causes of this error message. This article discusses one scenario that may cause this error message.

SOLUTION

Use the Set-WebServicesVirtualDirectory cmdlet to re-enable MRSProxy on every Client Access server in the on-premises environment through which you want to let remote move requests pass. To do this, follow these steps:
  1. Open the Exchange Management Shell.
  2. Make sure that the MRSProxyEnabled parameter on the server is set to false. To do this, run the following cmdlet:

    Get-WebServicesVirtualDirectory-Identity "Server\EWS(default Web site)"
  3. Enable the MRSProxy service. To do this, run the following cmdlet:
    Set-WebServicesVirtualDirectory-Identity "Server\EWS(default Web site)" –MRSProxyEnabled $true

MORE INFORMATION

For more information about this issue, visit the following Microsoft website:

http://community.office365.com/en-us/w/exchange/remote-mailbox-moves-fail-after-installing-exchange-2010-sp2.aspx
For more information about how to troubleshoot the error message that is mentioned in the "Symptoms" section, click the following article number to view the article in the Microsoft Knowledge Base:
2626696  "Exception has been thrown by the target" error in a hybrid deployment of Office 365 and your on-premises environment  

Still need help? Go to the Office 365 Community website.

Properties

Article ID: 2669562 - Last Review: May 31, 2013 - Revision: 12.0
Applies to
  • Microsoft Office 365 for enterprises (pre-upgrade)
  • Microsoft Office 365 for education  (pre-upgrade)
  • Microsoft Exchange Online
  • Microsoft Exchange Server 2010 Standard
  • Microsoft Exchange Server 2010 Enterprise
  • Microsoft Exchange Server 2010 Service Pack 1
  • Microsoft Exchange Server 2010 Service Pack 2
  • Microsoft Office 365
Keywords: 
o365 o365a o365062011 pre-upgrade o365e o365022013 after upgrade o365m hybrid KB2669562

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com