Hello,
I had an issue with getting or sending mails via exchange activity. Everything worked perfectly with no updates on activites or studio. Exchange activity worked with autodiscovery and suddenly its stoped working and throw error:
RemoteException wrapping UiPath.Mail.ExchangeException: The Autodiscover service couldn’t be located.
at UiPath.Mail.ExchangeConnection.GetExchangeService()
at UiPath.Mail.ExchangeServiceFactory.GetFromContext(ActivityContext context,
ExchangeConnection exchangeConnection)
at UiPath.Mail.Exchange.Activities.ExchangeActivity`1.BeginExecute(AsyncCodeActivityContext context,
AsyncCallback callback,
Object state)
at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance,
ActivityExecutor executor,
BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)
Then I decided to set server name, user and password. Its started giving error:
RemoteException wrapping UiPath.Mail.ExchangeException: The request failed. The request was aborted: Could not create SSL/TLS secure channel. —> RemoteException wrapping Microsoft.Exchange.WebServices.Data.ServiceRequestException: The request failed. The request was aborted: Could not create SSL/TLS secure channel. —> RemoteException wrapping System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.Exchange.WebServices.Data.EwsHttpWebRequest.Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest.GetResponse() in \REDMOND\EXCHANGE\BUILD\E15\15.00.0913.015\SOURCES\sources\dev\EwsManagedApi\src\EwsManagedApi\Core\EwsHttpWebRequest.cs:line 113
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request) in \REDMOND\EXCHANGE\BUILD\E15\15.00.0913.015\SOURCES\sources\dev\EwsManagedApi\src\EwsManagedApi\Core\Requests\ServiceRequestBase.cs:line 821
— End of inner exception stack trace —
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request) in \REDMOND\EXCHANGE\BUILD\E15\15.00.0913.015\SOURCES\sources\dev\EwsManagedApi\src\EwsManagedApi\Core\Requests\ServiceRequestBase.cs:line 831
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request) in \REDMOND\EXCHANGE\BUILD\E15\15.00.0913.015\SOURCES\sources\dev\EwsManagedApi\src\EwsManagedApi\Core\Requests\ServiceRequestBase.cs:line 724
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest1.Execute() in \\REDMOND\EXCHANGE\BUILD\E15\15.00.0913.015\SOURCES\sources\dev\EwsManagedApi\src\EwsManagedApi\Core\Requests\MultiResponseServiceRequest.cs:line 157 at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToFolder(FolderId folderId, PropertySet propertySet) in \\REDMOND\EXCHANGE\BUILD\E15\15.00.0913.015\SOURCES\sources\dev\EwsManagedApi\src\EwsManagedApi\Core\ExchangeService.cs:line 278 at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToFolder[TFolder](FolderId folderId, PropertySet propertySet) in \\REDMOND\EXCHANGE\BUILD\E15\15.00.0913.015\SOURCES\sources\dev\EwsManagedApi\src\EwsManagedApi\Core\ExchangeService.cs:line 295 at UiPath.Mail.EmailFolderService.FromWellKnownFolderName(String path, String sharedMailBox, ExchangeService exchangeService) --- End of inner exception stack trace --- at UiPath.Mail.Exchange.Activities.ExchangeActivity
1.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
Also tried it to write it on C# code with Microsoft.Exchange.WebServices.Data.ExchangeService library, but returned the same error.
The client has link to access mail via web which I use as URI or in server field in activity.
The client also told me they smarthost are using tls 1.2.
Also they send me some IP as mail server, but the activity return its not valid URI.
When I check their Outlook on account settings and server is set different string from which I described above.
I used library called EAGetMail and I successfully got mails, but its paid library so I want to avoid it.
Any ideas how to proceed to resolve the issue? Thank you in advance!