There are many reasons the Check Virtual Directories Exchange Web Services test can fail, match the report error and the error below for the solution:
Error: The given host name cannot be resolved to an Exchange Server.
Solution:
- On the reported CAS Server, open the Web.Config file (Program Files->Microsoft->Exchange Server->ClientAccess->OWA) .
- Verify that the EWS setting “ EnterpriseVault_ExchangeWebServicesURL ” contains a valid reference to an Exchange Server. This can be specified as an alias, name or IP Address and include port numbers.
Error: The CAS Server cannot communicate with the EWS Server due to Web site binding configuration.
Solution: Check the Web site server bindings on the Exchange server referenced in the EnterpriseVault_ExchangeWebServicesURL
Ensure that Web.Config settings are set correctly
- On the reported CAS Server, open the Web.Config file (Program Files->Microsoft->Exchange Server->ClientAccess->OWA) .
- Verify that the setting “ EnterpriseVault_ExchangeWebServicesURL ” contains a valid protocol. The setting should be set to HTTP if the environment needs to be configured using server bindings. If a secure binding is required for communication to the proxy server then the setting must be set to HTTPS.
Example :
https://localhost/ews/exchange.asmx
Error: The CAS Server cannot communicate with the EWS Server as the associated Web site does not have an EWS virtual directory.
Solution: Check the associated Web site has an EWS virtual Directory.
- Run Exchange Management Shell command prompt command: Get- WebServicesVirtualDirectory
- If an EWS virtual directory does not exist then add one to the web site:
- Open Exchange Management Shell command prompt, enter the command: New- WebServicesVirtualDirectory –website ‘’
Error: The CAS Server cannot communicate with the EWS Server as the associated Web site requires SSL.
Solution: Update the EWS Web.Config settings to use the HTTPS protocol in the address.
- On the reported CAS Server, open the Web.Config file (Program Files->Microsoft->Exchange Server->ClientAccess->OWA) .
- Verify that the EWS setting “ EnterpriseVault_ExchangeWebServicesURL ” uses the HTTPS protocol.
Example: https://l ocalhost / ews /exchange.asmx
- Open the Server Manager and navigate to the Web site EVORT has identified as not having certificates installed.
- In the right had pane select the bindings link.
- Select the HTTPS binding type and click the edit button, under the SSL certificate select a valid certificate.
Error: The EnterpriseVault_ExchangeWebServicesUrl setting is not valid.
Solution: Check EnterpriseVault_ExchangeWebServicesURL setting in the Web.Config file
- On the reported CAS Server, open the Web.Config file (Program Files->Microsoft->Exchange Server->ClientAccess->OWA) .
- Verify that the setting “ EnterpriseVault_ExchangeWebServicesURL ” contains a valid URL to Exchange We Services.
- Run Exchange Management Shell command prompt command: Get- WebServicesVirtualDirectory
Example:
Error: The authentication schemes to the OWA and EWS virtual directories are not compatible.
Solution: When Authentication fails between the OWA virtual directory and the EWS virtual directory, we look to the authentication scheme between the different virtual directories.
- If authentication for the OWA virtual directory is Windows authentication then the EWS virtual directory must be Windows authentication.
- Select the OWA virtual directory in the Web Site which contains the failure
- Verify that the authentication for the OWA virtual directory is lower than the EWS virtual directory.
Error: The specified virtual directory name is not valid.
Solution: Check the virtual directory name in the EnterpriseVault_ExchangeWebServicesURL setting in the Web.Config file, typically the virtual directory will be named “EWS”.
- To look up a valid EWS virtual directory use the Exchange Management Shell command prompt: - get WebServicesVirtualDirectory
- On the reported CAS Server, open the Web.Config file (Program Files->Microsoft->Exchange Server->ClientAccess->OWA) .
- Verify that the EWS setting “ EnterpriseVault_ExchangeWebServicesURL ” contains a valid URL to Exchange Web Services.
Example:
Error: The specified EWS service name is not valid
Solution: Check the service name in the EnterpriseVault_WebServicesURL setting in the Web.Config file, typically the service name will be “Exchange.asmx”.
- On the reported CAS Server, open the Web.Config file (Program Files->Microsoft->Exchange Server->ClientAccess->OWA) .
- Verify that the EWS setting “ EnterpriseVault_ExchangeWebServicesURL ” contains a valid URL to exchange web Services.
- To look up a valid EWS virtual directory use the Exchange Management Shell command prompt: - get WebServicesVirtualDirectory
Example:
Error : The CAS Server cannot communicate with the EWS Server as the associated Web site does not have a certificate installed.
Solution: Verify Web sites bindings on the Exchange server referenced in the EnterpriseVault_ExchangeWebServicesURL setting which require SSL has certificates installed and SSL settings are correctly applied.