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

Commit

Permalink
Use standard .NET TLS version instead of OS TLS version.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
johanneszab committed Jul 19, 2020
1 parent 7c3699a commit 9b3b575
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/TumblThree/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

[assembly: ComVisible(false)]
[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.MainAssembly)]
[assembly: AssemblyVersion("1.0.8.74")]
[assembly: AssemblyFileVersion("1.0.8.74")]
[assembly: AssemblyVersion("1.0.8.75")]
[assembly: AssemblyFileVersion("1.0.8.75")]
2 changes: 1 addition & 1 deletion src/TumblThree/TumblThree.Applications/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>

<runtime>
<loadFromRemoteSources enabled="true"/>
<ThrowUnobservedTaskExceptions enabled="false"/>
<AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=true"/>
</runtime>
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true"/>
Expand Down
3 changes: 1 addition & 2 deletions src/TumblThree/TumblThree.Domain/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>

<runtime>
<loadFromRemoteSources enabled="true"/>
<ThrowUnobservedTaskExceptions enabled="false"/>
<AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=true"/>
</runtime>

<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true"/>
</system.net>
Expand Down
3 changes: 1 addition & 2 deletions src/TumblThree/TumblThree.Presentation/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>

<runtime>
<loadFromRemoteSources enabled="true"/>
<ThrowUnobservedTaskExceptions enabled="false"/>
<AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=true"/>
</runtime>
<applicationSettings>
<TumblThree.Presentation.Properties.Settings>
Expand All @@ -23,7 +23,6 @@
</setting>
</TumblThree.Presentation.Properties.Settings>
</applicationSettings>

<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true"/>
</system.net>
Expand Down

0 comments on commit 9b3b575

Please sign in to comment.