question

AvaTomlinson-7607 avatar image
0 Votes"
AvaTomlinson-7607 asked AngadalaMallikarjun-7187 commented

Issue is occurring due to disabling of the TLS 1.0

I have observed TLS/SSL secure channel issue with provide hosted app while testing the application(XLCubedViewer). The issue is occurring due to disabling of the TLS 1.0.

"error is: at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) at Henkel.XLCubedReportsWeb.Controllers.HomeController.GetDefaultImageLinkUrl(String tileID)
The underlying connection was closed: An unexpected error occurred on a send"

Is there any out of the box solution (without any application code change) which can tell application to connect to the default TLS protocol???90364-tls-error1.jpg90319-xlcubed-tls-error.png


office-sharepoint-server-administration
tls-error1.jpg (40.5 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We are using .Net Framework version -
PSChildName Version


v2.0.50727 2.0.50727.4927
v3.0 3.0.30729.4926
Windows Communication Foundation 3.0.4506.4926
Windows Presentation Foundation 3.0.6920.4902
v3.5 3.5.30729.4926
Client 4.6.01586
Full 4.6.01586
Client 4.0.0.0

0 Votes 0 ·

We are also having the same issue, do we need to follow the same solution adding ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;






The underlying connection was closed: An unexpected error occurred on a send.; 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 AccountUserConsole.Program.SyncUsersAccount(ClientContext clientContext)


0 Votes 0 ·

1 Answer

EchoDu-MSFT avatar image
0 Votes"
EchoDu-MSFT answered EchoDu-MSFT commented

Hello @AvaTomlinson-7607 ,

There is no out of the box solution (without any application code change) that can tell the application to connect to the default TLS protocol.

Please add this to beginning of your code:

 ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;

Here is a case for your reference:

It is worth noting that disabling TLS 1.0 may cause compatibility issues with sites that don't support newer security protocol versions.

If you add this code, you still get an error. Then I suggest you still enable TLS 1.0 .

Thanks,
Echo Du
=========================
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AvaTomlinson-7607 ,

Is there anything else I can help with regarding this issue?
You can comment us at any time and we will continue to follow up.

Thanks,
Echo Du

0 Votes 0 ·

Hello @AvaTomlinson-7607 ,

Would you tell me whether your issue has been resolved or have any update?
I am looking forward to your reply.

Have a nice day!

Thanks,
Echo Du

0 Votes 0 ·