Skip to content

Commit 9739858

Browse files
authored
Call WebApplication.CreateBuilder(args) only once
1 parent 6474dea commit 9739858

File tree

1 file changed

+3
-0
lines changed
  • aspnetcore/fundamentals/configuration

1 file changed

+3
-0
lines changed

aspnetcore/fundamentals/configuration/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ var builder = WebApplication.CreateBuilder(args);
5959
1. [appsettings.json](#appsettingsjson) using the [JSON configuration provider](#jcp).
6060
1. A fallback to the host configuration described in the [next section](#host).
6161

62+
> [!Important]
63+
> 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)
64+
6265
<a name="host"></a>
6366

6467
### Default host configuration sources

0 commit comments

Comments
 (0)