SMS Gateway exception

During the configuration SMS Gateway settings with mobile number for the admin, on saving you may get the following error


System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 168.63.12.55:443

   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

   --- End of inner exception stack trace ---

   at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)

   at System.Net.WebClient.UploadData(Uri address, String method, Byte[] data)

   at Kovai.BizTalk360.BusinessService.Utility.GatewayApiHelper.HttpPost(Uri uri, WebProxy proxy, String userKey, String secretKey, String data)

   at Kovai.BizTalk360.BusinessService.Utility.GatewayApiHelper.HttpPost(Uri uri, GatewaySetting setting, String data)

   at Kovai.BizTalk360.BusinessService.Utility.GatewayApiHelper.SetDailyLimit(GatewaySetting gatewaySetting)

   at Kovai.BizTalk360.BusinessService.Utility.GatewayApiHelper.UpdateDailyLimitAndConfirm(GatewaySetting gatewaySetting)

   at Kovai.BizTalk360.BusinessService.Main.AlertBusinessService.UpdateGatewaySetting(GatewaySetting gatewaySetting)

   at Kovai.BizTalk360.BusinessService.Main.Rest.AlertBusinessService.UpdateGatewaySetting(GatewaySetting gatewaySetting)

   at Kovai.BizTalk360.WCFService.REST.AlertService.UpdateGatewaySetting(GatewaySetting gatewaySetting)


If entering proxy details and then connecting, the following error may occurs :-


System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

   at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)

   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)

   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)

   at System.Net.TlsStream.CallProcessAuthentication(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)

   at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)

   at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)

   at System.Net.ConnectStream.WriteHeaders(Boolean async)

   --- End of inner exception stack trace ---

   at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)

   at System.Net.WebClient.UploadData(Uri address, String method, Byte[] data)

   at Kovai.BizTalk360.BusinessService.Utility.GatewayApiHelper.HttpPost(Uri uri, WebProxy proxy, String userKey, String secretKey, String data)

   at Kovai.BizTalk360.BusinessService.Utility.GatewayApiHelper.HttpPost(Uri uri, GatewaySetting setting, String data)

   at Kovai.BizTalk360.BusinessService.Utility.GatewayApiHelper.SetDailyLimit(GatewaySetting gatewaySetting)

   at Kovai.BizTalk360.BusinessService.Utility.GatewayApiHelper.UpdateDailyLimitAndConfirm(GatewaySetting gatewaySetting)

   at Kovai.BizTalk360.BusinessService.Main.AlertBusinessService.UpdateGatewaySetting(GatewaySetting gatewaySetting)

   at Kovai.BizTalk360.BusinessService.Main.Rest.AlertBusinessService.UpdateGatewaySetting(GatewaySetting gatewaySetting)

   at Kovai.BizTalk360.WCFService.REST.AlertService.UpdateGatewaySetting(GatewaySetting gatewaySetting)

 

Solution:


1. You need to confirm if these certificates are registered with your server where BizTalk360 is installed.


blob1476354787010.png


If no, please take this to the admin team. This certificate can be installed automatically. The servers just need to trust this. We do not issue the certificate, it is referred by GoDaddy root certificate. The admin team should be able to follow up.


2. Check if there has been any configuration change on the proxy credential you have been using. Try creating a new credential and use that.


Login or Signup to post a comment