Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 9b3b575

Browse files
committed
Use standard .NET TLS version instead of OS TLS version.
This prevents TLS (SChannel 70, EventID 36887) errors and hence unsuccessful connections on Windows versions pre Windows 10. For example, the standard TLS version of Windows 7 is TLS 1.0 which is deprecated. The settings in this commit sets the TLS version to the standard TLS version of the currently installed .NET Framework (4.7.X) instead of the System/OS default TLS version.
1 parent 7c3699a commit 9b3b575

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

src/TumblThree/SharedAssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
[assembly: ComVisible(false)]
1414
[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.MainAssembly)]
15-
[assembly: AssemblyVersion("1.0.8.74")]
16-
[assembly: AssemblyFileVersion("1.0.8.74")]
15+
[assembly: AssemblyVersion("1.0.8.75")]
16+
[assembly: AssemblyFileVersion("1.0.8.75")]

src/TumblThree/TumblThree.Applications/App.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<startup>
44
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
55
</startup>
6-
76
<runtime>
87
<loadFromRemoteSources enabled="true"/>
98
<ThrowUnobservedTaskExceptions enabled="false"/>
9+
<AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=true"/>
1010
</runtime>
1111
<system.net>
1212
<defaultProxy enabled="true" useDefaultCredentials="true"/>

src/TumblThree/TumblThree.Domain/App.config

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
<startup>
44
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
55
</startup>
6-
76
<runtime>
87
<loadFromRemoteSources enabled="true"/>
98
<ThrowUnobservedTaskExceptions enabled="false"/>
9+
<AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=true"/>
1010
</runtime>
11-
1211
<system.net>
1312
<defaultProxy enabled="true" useDefaultCredentials="true"/>
1413
</system.net>

src/TumblThree/TumblThree.Presentation/App.config

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<startup>
99
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
1010
</startup>
11-
1211
<runtime>
1312
<loadFromRemoteSources enabled="true"/>
1413
<ThrowUnobservedTaskExceptions enabled="false"/>
14+
<AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=true"/>
1515
</runtime>
1616
<applicationSettings>
1717
<TumblThree.Presentation.Properties.Settings>
@@ -23,7 +23,6 @@
2323
</setting>
2424
</TumblThree.Presentation.Properties.Settings>
2525
</applicationSettings>
26-
2726
<system.net>
2827
<defaultProxy enabled="true" useDefaultCredentials="true"/>
2928
</system.net>

0 commit comments

Comments
 (0)