You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

"Execution of the Set-WebServicesVirtualDirectory cmdlet had thrown an exception" error message when you try to run the Hybrid Configuration wizard

PROBLEM
When you try to run the Hybrid Configuration wizard, you receive one of the following error messages:
Execution of the Set-WebServicesVirtualDirectory cmdlet had thrown an exception. This may indicate invalid parameters in your Hybrid Configuration settings.
Unable to cast COM object of type 'System.__ComObject' to interface type 'System.Web.Configuration.IRemoteWebConfigurationHostServer'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A99B591A-23C6-4238-8452-C7B0E895063D}' failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155).
at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke()
at Microsoft.Exchange.Management.Hybrid.RemotePowershellSession.RunCommand(String cmdlet, Dictionary`2 parameters, Boolean ignoreNotFoundErrors)a
'.
Additional troubleshooting information is available in the Update-HybridConfiguration log file located at D:\Program Files\Microsoft\Exchange Server\V14\Logging\Update-HybridConfiguration\HybridConfiguration_10_22_2012_17_3_38_634865222180903876.log.

ERROR:Updating hybrid configuration failed with error 'Subtask Configure execution failed: Configuring organization relationship settings.

Execution of the Set-WebServicesVirtualDirectory cmdlet had thrown an exception. This may indicate invalid parameters in your Hybrid Configuration settings.
Unable to access the configuration system on the remote server. Make sure that the remote server allows remote configuration.
CAUSE
This issue occurs if you run the Hybrid Configuration wizard from a server that does not have a Client Access server (CAS) role installed.
SOLUTION
To resolve this issue, run the Hybrid Configuration wizard from a server that has the CAS role installed.
MORE INFORMATION
If you experience issues with the Hybrid Configuration wizard, you can run the Exchange Hybrid Configuration Diagnostic. This diagnostic is an automated troubleshooting experience. Run it on the same server on which the Hybrid Configuration wizard failed. Doing this collects the Hybrid Configuration wizard logs and parses them for you. If you're experiencing a known issue, a message is displayed that tells you what went wrong. The message includes a link to an article that contains the solution. Currently, the diagnostic is supported only in Internet Explorer.

Still need help? Go to the Office 365 Community website or the Exchange TechNet Forums.
Properties

Article ID: 2821213 - Last Review: 05/21/2015 07:47:00 - Revision: 10.0

  • Microsoft Exchange Online
  • o365e o365a o365m o365022013 hybrid KB2821213
Feedback