I am having issues connecting to DMA using DIS. When i run test using settings its successful however when i actually connect Via DIS its failing with following error.
I have another DMA that i am trying to connect to and i am seeing – System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it [::1]:80
Thanks Michiel. We could close this case. Thanks for helping for now i rolled back to an older version of DIS but i will at some point upgrade and test DIS 3.1.7.
Hi Michiel
I don't have an answer, but just want to report the exact same issue with DIS 3.1.6
Both production and Lab have the same issue

Hi Peter
This issue is only present since the lastest DIS version. As mentioned in my post, DIS is now also connecting to the DataMiner WebServices. As mentioned in the following question: https://community.dataminer.services/question/error-on-publishing-script-could-not-establish-trust-relationship-for-the-ssl-tls-secure-channel/
could you check if the certificate is correct and valid and if nothing is blocked on the firewall regarding the DataMiner WebServices?
Hi Vishal
With the latest DIS release, connecting to a DataMiner (excluding the Test Connection button) will also connect to the WebApi for new features in DIS. It seems that the WebApi login fails.
I see you are using the IP address, would it be possible to try with the hostname?
Same result using host name

Hi Vishal
In the meantime another user had a similar issue: https://community.dataminer.services/question/error-on-publishing-script-could-not-establish-trust-relationship-for-the-ssl-tls-secure-channel/
Could you check if the certificate is valid and if the firewall doesn't block anything regarding the DataMiner WebServices?
HTTPS is not configured in our case. I want to avoid using https and just use http ? Where can I download older version of DIS for visual studio 2022. Marketplace only has latest and dataminer website has version for studio 2017 and older

Hi Vishal
Sorry for taking so long to reply. DIS 3.1.7 has been released and contains a fix to not fail on the Connect anymore.
2025/03/05 21:38:45.815|Trying to connect to DMA with hostname '10.144.66.197' and username 'CORPGroverV0506'!
2025/03/05 21:38:45.815|Starting new SLDisDmaComm service process
2025/03/05 21:38:45.932|> Process started: PID 48640
2025/03/05 21:38:46.008|> Guid: 57893106-5299-4911-90bd-3ddd82d4e369
2025/03/05 21:38:46.008|> Host: 10.144.66.197
2025/03/05 21:38:46.014|> Starting service
2025/03/05 21:38:46.090|> net.pipe://127.0.0.1/57893106-5299-4911-90bd-3ddd82d4e369/SLDisDmaComm
2025/03/05 21:38:46.104|> Service is started!
2025/03/05 21:38:46.104|SLDisDmaComm service PID: 48640
2025/03/05 21:38:46.105|Connecting to SLDisDmaComm service process
2025/03/05 21:38:46.107|Connected to SLDisDmaComm service process!
2025/03/05 21:38:46.127|> Executing RegisterCallback
2025/03/05 21:38:46.139|> Executing Connect (hostname: 10.144.66.197, username: CORPGroverV0506)
2025/03/05 21:38:46.147|> Parent process: devenv (33984)
2025/03/05 21:38:56.967|> Resolving assembly: SLProtoBufLibrary.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2025/03/05 21:38:56.968|> Trying to load assembly from package: SLProtoBufLibrary.XmlSerializers
2025/03/05 21:38:56.968|> Could not find file in DIS package.
2025/03/05 21:38:56.968|> Trying to load assembly via service: SLProtoBufLibrary.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2025/03/05 21:38:56.968|> Getting path via service…
2025/03/05 21:38:56.986|> Path:
2025/03/05 21:38:56.986|> Could not load assembly 'SLProtoBufLibrary.XmlSerializers'.
2025/03/05 21:39:01.534|> Failed to retrieve connection for WebApi with exception: System.Net.Http.HttpRequestException: An error occurred while sending the request. —> 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.
2025/03/05 21:39:01.534|> at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
2025/03/05 21:39:01.535|> at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
2025/03/05 21:39:01.535|> — End of inner exception stack trace —
2025/03/05 21:39:01.536|> at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
2025/03/05 21:39:01.536|> at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
2025/03/05 21:39:01.536|> — End of inner exception stack trace —
2025/03/05 21:39:01.536|> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025/03/05 21:39:01.536|> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025/03/05 21:39:01.536|> at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException[TResult](Task`1 task)
2025/03/05 21:39:01.536|> at SLDisDMAComm.SLDisDmaCommService.ConnectToWebApi() in D:aDISDISProtocolEditorSLDisDMACommSLDisDmaCommService.cs:line 1203
2025/03/05 21:39:01.536|> Exception during Connect: System.ServiceModel.FaultException: System.Net.Http.HttpRequestException: An error occurred while sending the request. —> 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.
2025/03/05 21:39:01.536|> at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
2025/03/05 21:39:01.536|> at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
2025/03/05 21:39:01.536|> — End of inner exception stack trace —
2025/03/05 21:39:01.536|> at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
2025/03/05 21:39:01.536|> at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
2025/03/05 21:39:01.536|> — End of inner exception stack trace —
2025/03/05 21:39:01.537|> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025/03/05 21:39:01.537|> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025/03/05 21:39:01.537|> at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException[TResult](Task`1 task)
2025/03/05 21:39:01.537|> at SLDisDMAComm.SLDisDmaCommService.ConnectToWebApi() in D:aDISDISProtocolEditorSLDisDMACommSLDisDmaCommService.cs:line 1203
2025/03/05 21:39:01.537|> at SLDisDMAComm.SLDisDmaCommService.ConnectToWebApi() in D:aDISDISProtocolEditorSLDisDMACommSLDisDmaCommService.cs:line 1224
2025/03/05 21:39:01.537|> at SLDisDMAComm.SLDisDmaCommService.Connect(String hostname, String username, String password, String accessToken) in D:aDISDISProtocolEditorSLDisDMACommSLDisDmaCommService.cs:line 219
2025/03/05 21:39:01.538|> Finished executing Connect (hostname: 10.144.66.197, username: CORPGroverV0506)
2025/03/05 21:39:01.538|> Connection Type: GRPCConnection
2025/03/05 21:39:01.542|Could not connect to DMA! :
System.ServiceModel.FaultException: System.ServiceModel.FaultException: System.Net.Http.HttpRequestException: An error occurred while sending the request. —> 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.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
— End of inner exception stack trace —
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
— End of inner exception stack trace —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException[TResult](Task`1 task)
at SLDisDMAComm.SLDisDmaCommService.ConnectToWebApi() in D:aDISDISProtocolEditorSLDisDMACommSLDisDmaCommService.cs:line 1203
at SLDisDMAComm.SLDisDmaCommService.ConnectToWebApi() in D:aDISDISProtocolEditorSLDisDMACommSLDisDmaCommService.cs:line 1224
at SLDisDMAComm.SLDisDmaCommService.Connect(String hostname, String username, String password, String accessToken) in D:aDISDISProtocolEditorSLDisDMACommSLDisDmaCommService.cs:line 219
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at SLDisDMACommShared.ISLDisDmaCommService.Connect(String hostname, String username, String password, String accessToken)
at SLDisDMACommClient.DmaClient.Connect(Guid id, String hostname, String username, String password, String accessToken) in D:aDISDISProtocolEditorSLDisDMACommClientDmaClient.cs:line 199
2025/03/05 21:39:01.542|Cleaning up SLDisDmaComm resources
2025/03/05 21:39:01.557|>