Hi,
I'm working on an api with exchange web service (ews) to handle new accounts and activation emails for a website.
It's deployed and it works but not all the time !
Sometimes, can be many times per week, i have this exception
StackTrace:
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecute()
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest1.Execute() at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalFindFolders(IEnumerable
1 parentFolderIds, SearchFilter searchFilter, FolderView view, ServiceErrorHandling errorHandlingMode)
at Microsoft.Exchange.WebServices.Data.ExchangeService.FindFolders(FolderId parentFolderId, FolderView view)
Message:
The request failed. The remote server returned an error: (401) Unauthorized.
Then my customers are stucked without the activation link.
Can anyone help me understand how to avoid this exception that seems random for me ?
Regards,
Jean-Michel