From 973985846d28757ea51ba5c53db2869429d23457 Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Mon, 13 Jan 2025 16:26:46 -0800 Subject: [PATCH 1/5] Call WebApplication.CreateBuilder(args) only once --- aspnetcore/fundamentals/configuration/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aspnetcore/fundamentals/configuration/index.md b/aspnetcore/fundamentals/configuration/index.md index 8b793527dbe7..b178fd780569 100644 --- a/aspnetcore/fundamentals/configuration/index.md +++ b/aspnetcore/fundamentals/configuration/index.md @@ -59,6 +59,9 @@ var builder = WebApplication.CreateBuilder(args); 1. [appsettings.json](#appsettingsjson) using the [JSON configuration provider](#jcp). 1. A fallback to the host configuration described in the [next section](#host). +> [!Important] +> While this article mentions `WebApplication.CreateBuilder(args)` many times, application code should call this method only once. For more information, see [this IIS Support blog post](https://techcommunity.microsoft.com/blog/iis-support-blog/asp-net-core-503-server-has-been-shutdown/3830338) + ### Default host configuration sources From c74f3244c2bd5fb124258c0c62fc6f8c15fc6159 Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Mon, 13 Jan 2025 16:36:11 -0800 Subject: [PATCH 2/5] Fix casing and punctuation in important note --- aspnetcore/fundamentals/configuration/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/fundamentals/configuration/index.md b/aspnetcore/fundamentals/configuration/index.md index b178fd780569..80d6d7bec73c 100644 --- a/aspnetcore/fundamentals/configuration/index.md +++ b/aspnetcore/fundamentals/configuration/index.md @@ -59,8 +59,8 @@ var builder = WebApplication.CreateBuilder(args); 1. [appsettings.json](#appsettingsjson) using the [JSON configuration provider](#jcp). 1. A fallback to the host configuration described in the [next section](#host). -> [!Important] -> While this article mentions `WebApplication.CreateBuilder(args)` many times, application code should call this method only once. For more information, see [this IIS Support blog post](https://techcommunity.microsoft.com/blog/iis-support-blog/asp-net-core-503-server-has-been-shutdown/3830338) +> [!IMPORTANT] +> While this article mentions `WebApplication.CreateBuilder(args)` many times, application code should call this method only once. For more information, see [this IIS Support blog post](https://techcommunity.microsoft.com/blog/iis-support-blog/asp-net-core-503-server-has-been-shutdown/3830338). From 5f6106f07ff12948f125153de6ff152a309f657a Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Thu, 16 Jan 2025 09:29:27 -0800 Subject: [PATCH 3/5] Update aspnetcore/fundamentals/configuration/index.md Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> --- aspnetcore/fundamentals/configuration/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aspnetcore/fundamentals/configuration/index.md b/aspnetcore/fundamentals/configuration/index.md index 80d6d7bec73c..1b4e64e980f1 100644 --- a/aspnetcore/fundamentals/configuration/index.md +++ b/aspnetcore/fundamentals/configuration/index.md @@ -59,8 +59,7 @@ var builder = WebApplication.CreateBuilder(args); 1. [appsettings.json](#appsettingsjson) using the [JSON configuration provider](#jcp). 1. A fallback to the host configuration described in the [next section](#host). -> [!IMPORTANT] -> While this article mentions `WebApplication.CreateBuilder(args)` many times, application code should call this method only once. For more information, see [this IIS Support blog post](https://techcommunity.microsoft.com/blog/iis-support-blog/asp-net-core-503-server-has-been-shutdown/3830338). +Note: `WebApplication.CreateBuilder(args)` should only be called once. From 73b176a5421133fbdaf0a14a4461bcded8de41bc Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Mon, 20 Jan 2025 11:56:22 -0800 Subject: [PATCH 4/5] Update aspnetcore/fundamentals/configuration/index.md Co-authored-by: Stephen Halter --- aspnetcore/fundamentals/configuration/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/fundamentals/configuration/index.md b/aspnetcore/fundamentals/configuration/index.md index 1b4e64e980f1..6aec340876dc 100644 --- a/aspnetcore/fundamentals/configuration/index.md +++ b/aspnetcore/fundamentals/configuration/index.md @@ -59,7 +59,7 @@ var builder = WebApplication.CreateBuilder(args); 1. [appsettings.json](#appsettingsjson) using the [JSON configuration provider](#jcp). 1. A fallback to the host configuration described in the [next section](#host). -Note: `WebApplication.CreateBuilder(args)` should only be called once. +Note: `WebApplication.CreateBuilder(args)` should only be called once in apps relying on IIS in-process hosting. From b5872aea75af6faa48e61bc62d6ab381f79489c5 Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Mon, 20 Jan 2025 18:06:52 -0800 Subject: [PATCH 5/5] Add comment -- delete this note in .NET 10 version of the doc. --- aspnetcore/fundamentals/configuration/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/fundamentals/configuration/index.md b/aspnetcore/fundamentals/configuration/index.md index 6aec340876dc..7427800d5427 100644 --- a/aspnetcore/fundamentals/configuration/index.md +++ b/aspnetcore/fundamentals/configuration/index.md @@ -59,7 +59,7 @@ var builder = WebApplication.CreateBuilder(args); 1. [appsettings.json](#appsettingsjson) using the [JSON configuration provider](#jcp). 1. A fallback to the host configuration described in the [next section](#host). -Note: `WebApplication.CreateBuilder(args)` should only be called once in apps relying on IIS in-process hosting. +Note: `WebApplication.CreateBuilder(args)` should only be called once in apps relying on IIS in-process hosting.