none
Could not create SSL/TLS secure channel exception in Service Job

    Question

  • Hi,

    I am new to HPC, tried out a SOA sample. Task result corresponding to the service call show the following exception:

    et.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
       at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
       --- End of inner exception stack trace ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.Hpc.HttpClientExtension.<>c__DisplayClass5_0.<<GetHttpApiCallAsync>b__0>d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.Hpc.RetryManager.<InvokeWithRetryAsync>d__33`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at Microsoft.Hpc.RetryManager.<InvokeWithRetryAsync>d__33`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.Hpc.HttpClientExtension.<GetHttpApiCallAsync>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.Hpc.Rest.HpcRestClient.<GetHttpApiCallAsync>d__18.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.Hpc.Rest.HpcRestClient.<GetHttpApiCallAsync>d__20`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.Hpc.Rest.ServiceRegistrationRestClient.<GetMd5Async>d__15.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.Hpc.Rest.ServiceRegistrationRestClient.<GetMd5Async>d__16.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.Hpc.Rest.ServiceRegistrationRestClient.<ExportToTempFileAsync>d__23.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.Hpc.Scheduler.Session.Internal.ServiceRegistrationRepo.GetServiceRegistrationPath(String filename)
    HpcServiceHost.exe Information: 0 : [ServiceRegistrationRepo] GetServiceRegistrationPath: Found file \\**\HpcServiceRegistration\PrimeFactorizationService.config
    HpcSoa Information: 11 : [Session:28] ServiceConfigFullPath = \\**\HpcServiceRegistration\PrimeFactorizationService.config
    HpcSoa Information: 11 : [Session:28] Sleep...
    Broker shut down this service host when shrinking session's resource allocation.

    Please point me to possible solutions if you have come across similar issue. 


    • Edited by Viswa rk Wednesday, October 17, 2018 8:46 PM
    Wednesday, October 17, 2018 8:45 PM

All replies

  • Hi,

    Windows Registry Editor Version 5.00
     
    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework\\v4.0.30319]
    "SchUseStrongCrypto"=dword:00000001
     
    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\.NETFramework\\v4.0.30319]
    "SchUseStrongCrypto"=dword:00000001
    

    Could you import above regkey value and see if it works?

    Thanks,
    Zihao

    Thursday, October 18, 2018 6:52 AM
  • Added the suggested registry entries, still getting the same original exception. Do I need to add configuration related to the certificate to Service Config?
    Thursday, October 18, 2018 2:06 PM
  • Hi,

    This error is related to TLS. From this thread we saw a similar error and the customer has resolve his issue. Can it be also helpful to you?

    Thanks,
    Zihao

    Friday, October 19, 2018 6:23 AM