From 807cd77307ab3f3bb9bbed77cd3acd544541a4c9 Mon Sep 17 00:00:00 2001 From: John Luo Date: Tue, 12 Jan 2016 16:03:24 -0800 Subject: [PATCH] Reacting to Hosting API changes --- samples/AntiforgerySample/Startup.cs | 1 + samples/AntiforgerySample/project.json | 1 + 2 files changed, 2 insertions(+) diff --git a/samples/AntiforgerySample/Startup.cs b/samples/AntiforgerySample/Startup.cs index 6b609f1c07..8c00c95793 100644 --- a/samples/AntiforgerySample/Startup.cs +++ b/samples/AntiforgerySample/Startup.cs @@ -75,6 +75,7 @@ namespace AntiforgerySample { var application = new WebApplicationBuilder() .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/AntiforgerySample/project.json b/samples/AntiforgerySample/project.json index d9b8cc547d..819ff29f70 100644 --- a/samples/AntiforgerySample/project.json +++ b/samples/AntiforgerySample/project.json @@ -5,6 +5,7 @@ "Microsoft.AspNet.Antiforgery": "1.0.0-*", "Microsoft.AspNet.Http.Abstractions": "1.0.0-*", "Microsoft.AspNet.Http.Extensions": "1.0.0-*", + "Microsoft.AspNet.IISPlatformHandler": "1.0.0-*", "Microsoft.AspNet.Routing.Extensions": "1.0.0-*", "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", "Microsoft.AspNet.StaticFiles": "1.0.0-*",