From 067bba577e308be1369c77be2b5ba7a462bb480d Mon Sep 17 00:00:00 2001 From: David Poindexter Date: Mon, 6 Feb 2023 13:10:13 -0500 Subject: [PATCH] Resolve issue creating sites when SSL is not enabled --- nvQuickSite/Controllers/IISController.cs | 2 +- nvQuickSite/Properties/AssemblyInfo.cs | 4 ++-- nvQuickSite/Start.cs | 2 +- nvQuickSite/data/latestVersion.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nvQuickSite/Controllers/IISController.cs b/nvQuickSite/Controllers/IISController.cs index 1d71ae9..ed1aebf 100644 --- a/nvQuickSite/Controllers/IISController.cs +++ b/nvQuickSite/Controllers/IISController.cs @@ -62,9 +62,9 @@ internal static void CreateSite(string siteName, string installFolder, bool useS { bindingInfo = "*:443:" + siteName; protocol = "https"; + site.Bindings.Add(bindingInfo, protocol); } - site.Bindings.Add(bindingInfo, protocol); site.TraceFailedRequestsLogging.Enabled = true; site.TraceFailedRequestsLogging.Directory = installFolder + "\\Logs"; site.LogFile.Directory = installFolder + "\\Logs" + "\\W3svc" + site.Id.ToString(CultureInfo.InvariantCulture); diff --git a/nvQuickSite/Properties/AssemblyInfo.cs b/nvQuickSite/Properties/AssemblyInfo.cs index aa1726c..7cb1094 100644 --- a/nvQuickSite/Properties/AssemblyInfo.cs +++ b/nvQuickSite/Properties/AssemblyInfo.cs @@ -49,6 +49,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.3.0")] -[assembly: AssemblyFileVersion("2.3.0")] +[assembly: AssemblyVersion("2.3.1")] +[assembly: AssemblyFileVersion("2.3.1")] [assembly: NeutralResourcesLanguage("en")] diff --git a/nvQuickSite/Start.cs b/nvQuickSite/Start.cs index 0b8b42f..2087d0e 100644 --- a/nvQuickSite/Start.cs +++ b/nvQuickSite/Start.cs @@ -589,7 +589,7 @@ private void btnDatabaseInfoNext_Click(object sender, EventArgs e) this.InstallFolder, this.chkSiteSpecificAppPool.Checked, this.chkDeleteSiteIfExists.Checked, - this.certificates[this.cboCertificates.SelectedIndex]); + this.chkEnableSsl.Checked ? this.certificates[this.cboCertificates.SelectedIndex] : null); FileSystemController.UpdateHostsFile(this.SiteName); diff --git a/nvQuickSite/data/latestVersion.json b/nvQuickSite/data/latestVersion.json index fa80f0e..86b6308 100644 --- a/nvQuickSite/data/latestVersion.json +++ b/nvQuickSite/data/latestVersion.json @@ -1,3 +1,3 @@ { - "latestVersion": "2.3.0" + "latestVersion": "2.3.1" } \ No newline at end of file