diff --git a/Logic/Support/General.cs b/Logic/Support/General.cs index 87ba1e31..64ffe2e6 100644 --- a/Logic/Support/General.cs +++ b/Logic/Support/General.cs @@ -23,6 +23,11 @@ namespace Swarmops.Logic.Support System.Net.ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true; + + // Further, instantiate an AesCryptoServiceProvider to make sure the linker doesn't optimize it away -- apparently + // another known bug + + System.Security.Cryptography.AesCryptoServiceProvider b = new System.Security.Cryptography.AesCryptoServiceProvider(); } public static string GenerateSecureRandomKey(int byteCount) diff --git a/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs b/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs index d1322245..7b57da70 100644 --- a/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs +++ b/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs @@ -463,6 +463,8 @@ namespace Swarmops.Frontend.Pages.v5.Financial using (WebClient client = new WebClient()) { + SupportFunctions.DisableSslCertificateChecks(); + string receiptResource = string.Empty; try {