Skip to content

Commit

Permalink
"The request was aborted: Could not create SSL/TLS secure channel" po…
Browse files Browse the repository at this point in the history
…ssible fix
  • Loading branch information
psenough committed Sep 23, 2021
1 parent 27e5648 commit 0830172
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Binary file modified .vs/N++Assistant/v16/.suo
Binary file not shown.
10 changes: 4 additions & 6 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public Form1()
{
InitializeComponent();

// get rid of "The request was aborted: Could not create SSL/TLS secure channel" error that happens on some versions of windows
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// get steam path
string steampath = (string)Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Valve\\Steam", "InstallPath", "null");
if (steampath == "null")
Expand Down Expand Up @@ -68,12 +72,6 @@ public Form1()
throw new FileNotFoundException("N++ not installed in steam");
}

// rename linked labels
//steamInstallDir.Text = steamGamePath;
//profileDir.Text = profilePath;
//screenshotsDir.Text = screenshotsPath;
//backupsDir.Text = savePath;

// create backup directories if they dont exist
if (!Directory.Exists(savePath)) Directory.CreateDirectory(savePath);
if (!Directory.Exists(savePath + @"\Profiles")) Directory.CreateDirectory(savePath + @"\Profiles");
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,8 @@ Needs Visual Studio Community 2019 with C# .Net stuff installed to compile from

## Credits:

ps, daniel
* ps main development

* daniel steam detection code

* cloudead beta-testing

0 comments on commit 0830172

Please sign in to comment.