diff --git a/samples/ANCMStressTestSample/Program.cs b/samples/ANCMStressTestSample/Program.cs index d3b60867b0..7bfe0bae9f 100644 --- a/samples/ANCMStressTestSample/Program.cs +++ b/samples/ANCMStressTestSample/Program.cs @@ -28,6 +28,7 @@ namespace ANCMStressTestApp factory.AddConsole(); }) .UseKestrel() + .UseIISIntegration() .UseStartup() .Build(); diff --git a/samples/ANCMStressTestSample/Startup.cs b/samples/ANCMStressTestSample/Startup.cs index 0dd43be50a..a374c65b40 100644 --- a/samples/ANCMStressTestSample/Startup.cs +++ b/samples/ANCMStressTestSample/Startup.cs @@ -188,7 +188,7 @@ namespace ANCMStressTestApp while (!result.CloseStatus.HasValue && !token.IsCancellationRequested && !closeFromServer) { if (result.Count == closeFromServerLength && - System.Text.Encoding.ASCII.GetString(buffer).Substring(0, result.Count) == closeFromServerCmd) + Encoding.ASCII.GetString(buffer).Substring(0, result.Count) == closeFromServerCmd) { // The client sent "CloseFromServer" text message to request the server to close (a test scenario). closeFromServer = true;