SEG: Weblistener log error- The remote server returned an error: 401 unauthorized

Error/symptom

This error is observed in the verbosed WebListener logs of the SEG Server. We also observe that the mail box keeps prompting for a password on the device consistently. Although the password is typed, the password is not accepted.

The exact error in the Weblistener log is depicted as below.

2016/05/09 15:10:42.769 SEG_Server b6efc249-674c-4760-991c-741fe7a0ac12 [0000000-0000000] (8) Debug AW.Eas.Web.Listener.ProxyGateway.ProxyClientRequest Proxied client request from https://SEG_Server_DNS/Microsoft-Server-ActiveSync to https://Exchange_Server_DNS/Microsoft-Server-ActiveSync
2016/05/09 15:10:42.769 SEG_Server b6efc249-674c-4760-991c-741fe7a0ac12 [0000000-0000000] (8) Debug AW.Eas.Web.Listener.ProxyGateway.GetMailServerResponse Proxying mail server response from https://Exchange_Server_DNS/Microsoft-Server-ActiveSync to https://SEG_Server_DNS/Microsoft-Server-ActiveSync.
2016/05/09 15:10:42.771 SEG_Server b6efc249-674c-4760-991c-741fe7a0ac12 [0000000-0000000] (8) Warn AW.Eas.Web.Listener.ProxyGateway.GetMailServerResponse SEG-12028: WebException encountered while 'getting server response (callback)' ' from mail server to SEG'. WebExStatus: 'ProtocolError', RequestTid: '60852232-7d4b-419a-ae1b-c6e090ce0e40', Status Code: 'Unauthorized', Status Description: 'Unauthorized', ExMessage: 'The remote server returned an error: (401) Unauthorized.'
2016/05/09 15:10:42.772 SEG_Server b6efc249-674c-4760-991c-741fe7a0ac12 [0000000-0000000] (8) Warn AW.Eas.Web.Listener.ProxyGateway.GetMailServerResponse *** EXCEPTION ***
System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at AW.Eas.Web.Listener.ProxyGateway.DoGetMailServerResponse(IAsyncResult asyncResult)
Diagnostics Context
*******************
PID: 5720
Process Name: w3wp
Error obtaining Process Identity: Object reference not set to an instance of an object.
Error obtaining Application Identity: Object reference not set to an instance of an object.
Error obtaining HTTP Request Identity: Object reference not set to an instance of an object.
HTTP Request URL: https://SEG_Server_DNS/Microsoft-Server-ActiveSync
HTTP Request Headers:
Connection: keep-alive
Content-Length: 0
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-us
Host: SEG_Server_DNS
User-Agent: Apple-iPad2C5/1304.15
X-MS-PolicyKey: 1452927205
X-Forwarded-For: 216.235.156.19
AirWatch-Transaction-Id: 60852232-7d4b-419a-ae1b-c6e090ce0e40

 

Cause

  1. This could be because the MSA endpoint on exchange does not have basic authentication enabled.
  2. This might be caused if the MSA endpoint on the SEG Server does not have Anonymous authentication enabled.

Resolution

  1. Enable the respective authentication methods on SEG and Exchange. The image below displays the settings on the SEG Server.

31.png

 

The image below displays the settings on the Exchange Server.

32.png

 

Note: There could be various reasons why the Exchange Server be throwing 401's, but these are the predominant reasons. Other reasons are to be researched and troubleshot according to the customer's use case.

 

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.