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.
Michiel Oda [SLC] [DevOps Enabler] Answered question 1 hour ago
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?
Michiel Oda [SLC] [DevOps Enabler] Answered question 1 hour ago
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|>