- Code: Select all
2016-12-13 11:54:07,917 WARN [Threadpool worker] ASC.Api - Problem with adding history event to CRM. mailId=9317
System.ApplicationException: Error retrieving response. Check inner details for more info. ---> System.Net.WebException: Error: SecureChannelFailure (The authentication or decryption has failed.) ---> System.I
O.IOException: The authentication or decryption has failed. ---> System.IO.IOException: Error while sending TLS Alert (Fatal:InternalError): System.IO.IOException: The authentication or decryption has failed.
---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00040] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
--- End of inner exception stack trace ---
at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x0003b] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 ---> System.IO.IOException: Unable to write data to the transport connection: The socket has been shut down. ---> System.Net.Sockets.SocketException: The socket has been shut down
at System.Net.Sockets.Socket.EndSend (System.IAsyncResult result) [0x00033] in <bd46d4d4f7964dfa9beea098499ab597>:0
at System.Net.Sockets.NetworkStream.EndWrite (System.IAsyncResult asyncResult) [0x0005f] in <bd46d4d4f7964dfa9beea098499ab597>:0
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.EndWrite (System.IAsyncResult asyncResult) [0x000af] in <bd46d4d4f7964dfa9beea098499ab597>:0
at Mono.Security.Protocol.Tls.RecordProtocol.EndSendRecord (System.IAsyncResult asyncResult) [0x00040] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Security.Protocol.Tls.RecordProtocol.SendRecord (Mono.Security.Protocol.Tls.ContentType contentType, System.Byte[] recordData) [0x0000b] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (Mono.Security.Protocol.Tls.Alert alert) [0x00027] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (System.Exception& ex) [0x00021] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x00057] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) [0x00011] in <bd46d4d4f7964dfa9beea098499ab597>:0
at Mono.Net.Security.Private.LegacySslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000e] in <bd46d4d4f7964dfa9beea098499ab597>:0
at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) [0x00044] in <bd46d4d4f7964dfa9beea098499ab597>:0
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream (System.IAsyncResult asyncResult) [0x00043] in <bd46d4d4f7964dfa9beea098499ab597>:0
at System.Net.HttpWebRequest.GetRequestStream () [0x00057] in <bd46d4d4f7964dfa9beea098499ab597>:0
at RestSharp.Http.WriteRequestBody (System.Net.HttpWebRequest webRequest) [0x00034] in <f1571fe5cebd42168196f091576fbb71>:0
at RestSharp.Http.PostPutInternal (System.String method) [0x00015] in <f1571fe5cebd42168196f091576fbb71>:0
at RestSharp.Http.AsPost (System.String httpMethod) [0x00007] in <f1571fe5cebd42168196f091576fbb71>:0
at RestSharp.RestClient.DoExecuteAsPost (RestSharp.IHttp http, System.String method) [0x00000] in <f1571fe5cebd42168196f091576fbb71>:0
at RestSharp.RestClient.Execute (RestSharp.IRestRequest request, System.String httpMethod, System.Func`3[T1,T2,TResult] getResponse) [0x00022] in <f1571fe5cebd42168196f091576fbb71>:0
--- End of inner exception stack trace ---
at ASC.Mail.Aggregator.Common.ApiHelper.Execute (RestSharp.RestRequest request) [0x000a8] in <51a1114efab74314a432fcbabdf935ed>:0
at ASC.Mail.Aggregator.Common.ApiHelper.AddToCrmHistory (ASC.Mail.Aggregator.Common.MailMessage message, ASC.Mail.Aggregator.Common.CrmContactEntity entity, System.Collections.Generic.IEnumerable`1[T] fileIds) [0x00137] in <51a1114efab74314a432fcbabdf935ed>:0
at ASC.Mail.Aggregator.Dal.CrmHistoryDal.AddRelationshipEvents (ASC.Mail.Aggregator.Common.MailMessage message) [0x001bf] in <8ebb122af20146308d0fd7dfb13ec99b>:0
at ASC.Mail.Aggregator.MailBoxManager.AddRelationshipEventForLinkedAccounts (ASC.Mail.Aggregator.Common.MailBox mailbox, ASC.Mail.Aggregator.Common.MailMessage messageItem, System.String httpContextScheme, ASC.Mail.Aggregator.Common.Logging.ILogger log) [0x00054] in <8ebb122af20146308d0fd7dfb13ec99b>:0
The request goes to https://subdomain/api/2.0/crm/history.json instead of https://subdomain.domain.tld/api/2.0/crm/history.json – is there a way to fix this?