diff --git a/src/DynamoCoreWpf/Utilities/CrashReportTool.cs b/src/DynamoCoreWpf/Utilities/CrashReportTool.cs index d2626149515..b2688b41a71 100644 --- a/src/DynamoCoreWpf/Utilities/CrashReportTool.cs +++ b/src/DynamoCoreWpf/Utilities/CrashReportTool.cs @@ -1,5 +1,4 @@ using Dynamo.Core; -using Dynamo.Logging; using Dynamo.Models; using Dynamo.ViewModels; using System; @@ -178,9 +177,6 @@ internal static bool ShowCrashErrorReportWindow(DynamoViewModel viewModel, Crash } DynamoModel model = viewModel?.Model; - - string cerToolDir = !string.IsNullOrEmpty(model?.CERLocation) ? - model?.CERLocation : FindCERToolInInstallLocations(); string cerToolDir = !string.IsNullOrEmpty(model?.CERLocation) ? model?.CERLocation : FindCERToolInInstallLocations(); @@ -285,6 +281,7 @@ internal static bool ShowCrashErrorReportWindow(DynamoViewModel viewModel, Crash } var upiConfigFilePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "upiconfig.xml"); + using (var cerDLL = new CerDLL(cerToolPath)) { cerDLL.ToggleCER(true);