Remote Approval: Web Exception Error 401

Remote Approval log files \wfgen\App_Data\LogFiles\RemoteApproval

Complete error message:

WebException Error: Check Exchange server address and security type.

The request failed with HTTP status 401: Unauthorized.; at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

 at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

 at EmailListener.EWS.ExchangeServiceBinding.FindItem(FindItemType FindItem1)

 at EmailListener.Exchange2007\_2010.StartProcess(); System.Web.Services;

Solution

The Basic Authentication for the Active Directory account associated to the email address must have permissions to open a session locally on the Exchange Server and the web server.