diff --git a/samples/SessionSample/Startup.cs b/samples/SessionSample/Startup.cs index c8c6432722..9aad777ccb 100644 --- a/samples/SessionSample/Startup.cs +++ b/samples/SessionSample/Startup.cs @@ -82,7 +82,7 @@ namespace SessionSample var host = new WebHostBuilder() .UseDefaultHostingConfiguration(args) .UseKestrel() - .UseIISPlatformHandlerUrl() + .UseIISIntegration() .UseStartup() .Build(); diff --git a/samples/SessionSample/project.json b/samples/SessionSample/project.json index 64c6384fbe..5de54b45bd 100644 --- a/samples/SessionSample/project.json +++ b/samples/SessionSample/project.json @@ -2,11 +2,8 @@ "compilationOptions": { "emitEntryPoint": true }, - "commands": { - "web": "SessionSample" - }, "dependencies": { - "Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*", + "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*", "Microsoft.AspNetCore.Session": "1.0.0-*", "Microsoft.Extensions.Caching.Memory": "1.0.0-*", @@ -15,7 +12,9 @@ "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*" }, - "exclude": "wwwroot/**/*.*", + "content": [ + "web.config" + ], "frameworks": { "net451": { } } diff --git a/samples/SessionSample/web.config b/samples/SessionSample/web.config new file mode 100644 index 0000000000..f1dc29a792 --- /dev/null +++ b/samples/SessionSample/web.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/samples/SessionSample/wwwroot/Readme.md b/samples/SessionSample/wwwroot/Readme.md deleted file mode 100644 index a13a1e1fe3..0000000000 --- a/samples/SessionSample/wwwroot/Readme.md +++ /dev/null @@ -1 +0,0 @@ -Sample demonstrating ASP.NET Core Session middleware. \ No newline at end of file diff --git a/samples/SessionSample/wwwroot/web.config b/samples/SessionSample/wwwroot/web.config deleted file mode 100644 index 9a0d90abf8..0000000000 --- a/samples/SessionSample/wwwroot/web.config +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file