Skip to content

Commit e7fd2de

Browse files
authored
update
1 parent 9e13574 commit e7fd2de

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

support/entra/entra-id/app-integration/application-using-tls-1dot0-1dot2-authentication-fail.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This article provides solutions to authentication errors that occur with Microso
1212

1313
## Symptoms
1414

15-
Applications using an older version of the .NET Framework might encounter authentication failures with one of the following error messages:<o:p></o:p>
15+
Applications using an older version of the .NET Framework might encounter authentication failures with one of the following error messages:
1616

1717
- > AADSTS1002016: You are using TLS version 1.0, 1.1 and/or 3DES cipher which are deprecated to improve the security posture of Azure AD
1818
@@ -38,9 +38,7 @@ Upgrade the application to use .NET Framework 4.7 or later where TLS 1.2 is enab
3838

3939
## Solution 2: Enable TLS 1.2 programmatically
4040

41-
If upgrading the .NET Framework is not feasible, you can enable TLS 1.2 in your application code:
42-
43-
Modify the **Global.asax.cs** file in your application:
41+
If upgrading the .NET Framework is not feasible, you can enable TLS 1.2 through adding the following code in the **Global.asax.cs** file in your application:
4442

4543
```csharp
4644
using System.Net;
@@ -52,7 +50,7 @@ ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProt
5250
}
5351
```
5452

55-
## Solution 3: Use web.config to enable TLS 1.2
53+
## Solution 3: Change web.config to enable TLS 1.2
5654

5755
If .NET 4.7.2 is available, you can enable TLS 1.2 through adding the following configuration in the **web.config** file:
5856

0 commit comments

Comments
 (0)