"Execution of the Set-WebServicesVirtualDirectory cmdlet had thrown an exception" error message when you try to run the Hybrid Configuration Wizard (HCW) in Office 365

Article translations Article translations
Article ID: 2821213 - 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

When you try to run the Hybrid Configuration Wizard (HCW) in Microsoft Office 365, you receive the following error message:

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.

CAUSE

This issue occurs if you run the HCW from a server that does not have a Client Access server (CAS) role installed.

SOLUTION

To resolve this issue, run the HCW from a server that has the CAS role installed.

MORE INFORMATION

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

Properties

Article ID: 2821213 - Last Review: September 22, 2013 - Revision: 5.0
Applies to
  • Microsoft Exchange Online
Keywords: 
o365e o365a o365m o365022013 after upgrade hybrid KB2821213

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