Skip to content

Commit 0830172

Browse files
committed
"The request was aborted: Could not create SSL/TLS secure channel" possible fix
1 parent 27e5648 commit 0830172

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.vs/N++Assistant/v16/.suo

1.5 KB
Binary file not shown.

Form1.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ public Form1()
3131
{
3232
InitializeComponent();
3333

34+
// get rid of "The request was aborted: Could not create SSL/TLS secure channel" error that happens on some versions of windows
35+
ServicePointManager.Expect100Continue = true;
36+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
37+
3438
// get steam path
3539
string steampath = (string)Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Valve\\Steam", "InstallPath", "null");
3640
if (steampath == "null")
@@ -68,12 +72,6 @@ public Form1()
6872
throw new FileNotFoundException("N++ not installed in steam");
6973
}
7074

71-
// rename linked labels
72-
//steamInstallDir.Text = steamGamePath;
73-
//profileDir.Text = profilePath;
74-
//screenshotsDir.Text = screenshotsPath;
75-
//backupsDir.Text = savePath;
76-
7775
// create backup directories if they dont exist
7876
if (!Directory.Exists(savePath)) Directory.CreateDirectory(savePath);
7977
if (!Directory.Exists(savePath + @"\Profiles")) Directory.CreateDirectory(savePath + @"\Profiles");

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,8 @@ Needs Visual Studio Community 2019 with C# .Net stuff installed to compile from
5858

5959
## Credits:
6060

61-
ps, daniel
61+
* ps main development
62+
63+
* daniel steam detection code
64+
65+
* cloudead beta-testing

0 commit comments

Comments
 (0)