Highlighted
Micro Focus Expert
Micro Focus Expert
248 views

(DP) Support Tip: Exchange GRE search criteria feature doesn't work

Using search criteria feature gets an error message, according debug seems to be a WES configuration issue but URL are configured correctly.

2018-02-01 11:57:21,058 - 20040 - ("trunk/ExchangeGre/src/proxy/ExchangeProxy/PowerShellFacade.cs $Rev: 1488 $ $Date:: 2017-03-10 04:05:38":0) 09.00.20288
 InternalNLBBypassUrl : https://server.domain.com/ews/exchange.asmx

2018-02-01 11:57:21,058 - 20040 - ("trunk/ExchangeGre/src/proxy/ExchangeProxy/PowerShellFacade.cs $Rev: 1488 $ $Date:: 2017-03-10 04:05:38":0) 09.00.20288
 InternalNLBBypassUrl : https://server.domain.com/ews/exchange.asmx

2018-02-01 11:57:21,058 - 20040 - ("trunk/ExchangeGre/src/proxy/ExchangeProxy/PowerShellFacade.cs $Rev: 1488 $ $Date:: 2017-03-10 04:05:38":0) 09.00.20288
End : GetWebServicesVirtualDirectory

2018-02-01 11:57:21,058 - 20040 - ("trunk/ExchangeGre/src/proxy/ExchangeProxy/ProxyGenOperations.cs $Rev: 1455 $ $Date:: 2016-01-26 08:08:46":0) 09.00.20288
 InternalNLBBypassUrl Exception caught

2018-02-01 11:57:21,058 - 20040 - ("trunk/ExchangeGre/src/proxy/ExchangeProxy/ProxyGenOperations.cs $Rev: 1455 $ $Date:: 2016-01-26 08:08:46":0) 09.00.20288
ServerCertificateValidationCallback returned true

2018-02-01 11:57:21,074 - 20040 - ("trunk/ExchangeGre/src/proxy/ExchangeProxy/ProxyGenOperations.cs $Rev: 1455 $ $Date:: 2016-01-26 08:08:46":0) 09.00.20288
ServerCertificateValidationCallback returned true

2018-02-01 11:57:21,074 - 20040 - ("trunk/ExchangeGre/src/proxy/ExchangeProxy/ProxyGenOperations.cs $Rev: 1455 $ $Date:: 2016-01-26 08:08:46":0) 09.00.20288
 InternalNLBBypassUrl Exception caught

2018-02-01 11:57:21,074 - 20040 - ("trunk/ExchangeGre/src/proxy/ExchangeProxy/ProxyGenOperations.cs $Rev: 1455 $ $Date:: 2016-01-26 08:08:46":0) 09.00.20288
 InternalNLBBypassUrl field is empty

wes.jpg

Debug_webservice.txt show

2018-02-01 11:57:19,186 - 20040 - (:0)
-! Info: System.Net.WebException: The remote server returned an error: (404) Not Found.
   en System.Net.HttpWebRequest.GetResponse()
   en AutodiscoverSample.Autodiscover.DiscoverTryUrl(String emailAddress, NetworkCredential nc, String url, Boolean authoritative, Boolean allowSelfSignedCerts)
2018-02-01 11:57:19,186 - 20040 - (:0)

It match with error received from Powershell command "Test-OutlookWebServices -Identity "name@domain.com" > c:\temp\ews.txt

RunspaceId : e689b2ac-5302-4fa1-a88f-1e8097238c2a
Id         : 1013
Type       : Error
Message    :  Error When contacting https://mail.abc.org/Autodiscover/Autodiscover.xml received the error The remote server returned an error: (401) Unauthorized.

Cause
All EWS tests reported error (usually 404 server not found)
MicroFocus recommendation is contact Microsoft support.

Workaround / Fix
It is possible that restart of IIS (since EWS is IIS service and can be configured through IIS Manager) can help or check if all Exchange windows services are started and maybe restart some of them can help.

Best Regards

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.