0

We want to install MatterCenter from GitHub MatterCenter as per this documentation @ Matter Center for Office 365 - Build and deployment guide , but when i execute Deploy.ps1 it will return this error

 "Message: The underlying connection was closed: An unexpected error occurred on a send."`
    
 17/06/2022 19:51:02 - Step 1a: Create groups and adding users to it
 Message: The underlying connection was closed: An unexpected error occurred on a send.
 Stacktrace:    at System.Net.HttpWebRequest.GetResponse()
    at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
    at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
    at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
    at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
    at Microsoft.Legal.MatterCenter.Common.ConfigureSharePointContext.ConfigureClientContext(String url, String userId, String password)
    at Microsoft.Legal.MatterCenter.CreateGroups.Program.AddGroups(Dictionary`2 listval, List`1 groupData)
 Message: The underlying connection was closed: An unexpected error occurred on a send.
 Stacktrace:    at System.Net.HttpWebRequest.GetResponse()
    at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
    at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
    at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
    at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
    at Microsoft.Legal.MatterCenter.Common.ConfigureSharePointContext.ConfigureClientContext(String url, String userId, String password)
    at Microsoft.Legal.MatterCenter.CreateGroups.Program.DeleteGroups(Dictionary`2 listval, List`1 groupData)
 17/06/2022 19:51:04 - Creating group and adding users to it failed
    
 the logs will show this error:-
    
 Message: The underlying connection was closed: An unexpected error occurred on a send.
 Stacktrace:    at System.Net.HttpWebRequest.GetResponse()
    at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
    at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
    at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
    at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
    at Microsoft.Legal.MatterCenter.Common.ConfigureSharePointContext.ConfigureClientContext(String url, String userId, String password)
    at Microsoft.Legal.MatterCenter.CreateGroups.Program.DeleteGroups(Dictionary`2 listval, List`1 groupData) occurred at 17/06/2022 21:48:24

I read many articles about this error, and most of the articles mentioned that i will need to enable TLS 1.2, so i follow the steps on this link https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/security/enable-tls-1-2-client , mainly i added the following registry:-

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp\
      DefaultSecureProtocols = (DWORD): 0xAA0
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp\
      DefaultSecureProtocols = (DWORD): 0xAA0

I restarted my PC >> try to run the Deploy.ps1 again but got the same exception.. anyone has any idea?

I also explicitly added TLS1.2 before calling the .exe as follow:-

Show-Message -Message "Step 1a: Create groups and adding users to it" 
   [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    & " $HelperPath\Microsoft.Legal.MatterCenter.CreateGroups.exe" "true" $Username $Password

but still i am getting the exact same error Message: The underlying connection was closed: An unexpected error occurred on a send.? Any one has any idea how to fix this error? Thanks

Thanks

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.