From c536b339d0be51429e72a3bee2f00ddb88ec68b9 Mon Sep 17 00:00:00 2001 From: Chris R Date: Tue, 12 Jan 2016 15:08:05 -0800 Subject: [PATCH] React to hosting API changes. --- samples/DatabaseErrorPageSample/Startup.cs | 1 + samples/DatabaseErrorPageSample/project.json | 1 + samples/DeveloperExceptionPageSample/Startup.cs | 1 + samples/DeveloperExceptionPageSample/project.json | 1 + samples/ElmPageSample/Startup.cs | 1 + samples/ElmPageSample/project.json | 1 + samples/ExceptionHandlerSample/Startup.cs | 1 + samples/ExceptionHandlerSample/project.json | 1 + samples/MiddlewareAnalysisSample/Startup.cs | 1 + samples/RuntimeInfoPageSample/Startup.cs | 1 + samples/RuntimeInfoPageSample/project.json | 1 + samples/RuntimeInfoPageSample/wwwroot/web.config | 9 +++++++++ samples/StatusCodePagesSample/Startup.cs | 1 + samples/StatusCodePagesSample/project.json | 1 + samples/WelcomePageSample/Startup.cs | 1 + samples/WelcomePageSample/project.json | 1 + 16 files changed, 24 insertions(+) create mode 100644 samples/RuntimeInfoPageSample/wwwroot/web.config diff --git a/samples/DatabaseErrorPageSample/Startup.cs b/samples/DatabaseErrorPageSample/Startup.cs index 2db005de6e..18a8d80d63 100644 --- a/samples/DatabaseErrorPageSample/Startup.cs +++ b/samples/DatabaseErrorPageSample/Startup.cs @@ -31,6 +31,7 @@ namespace DatabaseErrorPageSample { var application = new WebApplicationBuilder() .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/DatabaseErrorPageSample/project.json b/samples/DatabaseErrorPageSample/project.json index 723265ec80..fcac2ba95b 100644 --- a/samples/DatabaseErrorPageSample/project.json +++ b/samples/DatabaseErrorPageSample/project.json @@ -1,6 +1,7 @@ { "dependencies": { "Microsoft.AspNet.Diagnostics.Entity": "7.0.0-*", + "Microsoft.AspNet.IISPlatformHandler": "1.0.0-*", "EntityFramework.MicrosoftSqlServer": "7.0.0-*", "EntityFramework.Commands": "7.0.0-*", "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" diff --git a/samples/DeveloperExceptionPageSample/Startup.cs b/samples/DeveloperExceptionPageSample/Startup.cs index 84d20df70e..a0461ba6c5 100644 --- a/samples/DeveloperExceptionPageSample/Startup.cs +++ b/samples/DeveloperExceptionPageSample/Startup.cs @@ -23,6 +23,7 @@ namespace DeveloperExceptionPageSample { var application = new WebApplicationBuilder() .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/DeveloperExceptionPageSample/project.json b/samples/DeveloperExceptionPageSample/project.json index bb6948f961..88986ca58e 100644 --- a/samples/DeveloperExceptionPageSample/project.json +++ b/samples/DeveloperExceptionPageSample/project.json @@ -1,6 +1,7 @@ { "dependencies": { "Microsoft.AspNet.Diagnostics": "1.0.0-*", + "Microsoft.AspNet.IISPlatformHandler": "1.0.0-*", "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" }, "compilationOptions": { diff --git a/samples/ElmPageSample/Startup.cs b/samples/ElmPageSample/Startup.cs index 2ad04c59c1..ac8eeca146 100644 --- a/samples/ElmPageSample/Startup.cs +++ b/samples/ElmPageSample/Startup.cs @@ -33,6 +33,7 @@ namespace ElmPageSample { var application = new WebApplicationBuilder() .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/ElmPageSample/project.json b/samples/ElmPageSample/project.json index 44ece82e8e..3b0beb96c6 100644 --- a/samples/ElmPageSample/project.json +++ b/samples/ElmPageSample/project.json @@ -2,6 +2,7 @@ "exclude": "wwwroot/**/*.*", "dependencies": { "Microsoft.AspNet.Diagnostics.Elm": "1.0.0-*", + "Microsoft.AspNet.IISPlatformHandler": "1.0.0-*", "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" }, "compilationOptions": { diff --git a/samples/ExceptionHandlerSample/Startup.cs b/samples/ExceptionHandlerSample/Startup.cs index ed5848014e..e122b01901 100644 --- a/samples/ExceptionHandlerSample/Startup.cs +++ b/samples/ExceptionHandlerSample/Startup.cs @@ -60,6 +60,7 @@ namespace ExceptionHandlerSample { var application = new WebApplicationBuilder() .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/ExceptionHandlerSample/project.json b/samples/ExceptionHandlerSample/project.json index b736772f74..aefc17535f 100644 --- a/samples/ExceptionHandlerSample/project.json +++ b/samples/ExceptionHandlerSample/project.json @@ -2,6 +2,7 @@ "exclude": "wwwroot/**/*.*", "dependencies": { "Microsoft.AspNet.Diagnostics": "1.0.0-*", + "Microsoft.AspNet.IISPlatformHandler": "1.0.0-*", "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", "Microsoft.AspNet.StaticFiles": "1.0.0-*" }, diff --git a/samples/MiddlewareAnalysisSample/Startup.cs b/samples/MiddlewareAnalysisSample/Startup.cs index 1bee7b7822..3b228428f1 100644 --- a/samples/MiddlewareAnalysisSample/Startup.cs +++ b/samples/MiddlewareAnalysisSample/Startup.cs @@ -87,6 +87,7 @@ namespace MiddlewareAnaysisSample { var application = new WebApplicationBuilder() .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/RuntimeInfoPageSample/Startup.cs b/samples/RuntimeInfoPageSample/Startup.cs index f62727e88a..9c4452f4ad 100644 --- a/samples/RuntimeInfoPageSample/Startup.cs +++ b/samples/RuntimeInfoPageSample/Startup.cs @@ -23,6 +23,7 @@ namespace RuntimeInfoPageSample { var application = new WebApplicationBuilder() .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/RuntimeInfoPageSample/project.json b/samples/RuntimeInfoPageSample/project.json index 53237a83d4..11b85e572c 100644 --- a/samples/RuntimeInfoPageSample/project.json +++ b/samples/RuntimeInfoPageSample/project.json @@ -2,6 +2,7 @@ "exclude": "wwwroot/**/*.*", "dependencies": { "Microsoft.AspNet.Diagnostics": "", + "Microsoft.AspNet.IISPlatformHandler": "1.0.0-*", "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" }, "compilationOptions": { diff --git a/samples/RuntimeInfoPageSample/wwwroot/web.config b/samples/RuntimeInfoPageSample/wwwroot/web.config new file mode 100644 index 0000000000..9a0d90abf8 --- /dev/null +++ b/samples/RuntimeInfoPageSample/wwwroot/web.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/samples/StatusCodePagesSample/Startup.cs b/samples/StatusCodePagesSample/Startup.cs index eb8a588b82..35721fdf23 100644 --- a/samples/StatusCodePagesSample/Startup.cs +++ b/samples/StatusCodePagesSample/Startup.cs @@ -106,6 +106,7 @@ namespace StatusCodePagesSample { var application = new WebApplicationBuilder() .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/StatusCodePagesSample/project.json b/samples/StatusCodePagesSample/project.json index ffda530d78..c68912a5ed 100644 --- a/samples/StatusCodePagesSample/project.json +++ b/samples/StatusCodePagesSample/project.json @@ -16,6 +16,7 @@ "commands": { "web": "StatusCodePagesSample" }, "dependencies": { "Microsoft.AspNet.Diagnostics": "1.0.0-*", + "Microsoft.AspNet.IISPlatformHandler": "1.0.0-*", "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" }, "frameworks": { diff --git a/samples/WelcomePageSample/Startup.cs b/samples/WelcomePageSample/Startup.cs index 70eba38f6c..42ee635841 100644 --- a/samples/WelcomePageSample/Startup.cs +++ b/samples/WelcomePageSample/Startup.cs @@ -14,6 +14,7 @@ namespace WelcomePageSample { var application = new WebApplicationBuilder() .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/WelcomePageSample/project.json b/samples/WelcomePageSample/project.json index 7a8798879b..62bfc48f79 100644 --- a/samples/WelcomePageSample/project.json +++ b/samples/WelcomePageSample/project.json @@ -1,6 +1,7 @@ { "dependencies": { "Microsoft.AspNet.Diagnostics": "", + "Microsoft.AspNet.IISPlatformHandler": "1.0.0-*", "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" }, "compilationOptions": {