You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/host-and-deploy/iis/advanced.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Advanced configuration with the ASP.NET Core Module and Internet In
5
5
monikerRange: '>= aspnetcore-5.0'
6
6
ms.author: riande
7
7
ms.custom: mvc
8
-
ms.date: 10/09/2023
8
+
ms.date: 03/07/2025
9
9
uid: host-and-deploy/iis/advanced
10
10
---
11
11
# Advanced configuration of the ASP.NET Core Module and IIS
@@ -18,6 +18,7 @@ This article covers advanced configuration options and scenarios for the ASP.NET
18
18
19
19
*Only applies when using the in-process hosting model.*
20
20
21
+
:::moniker range="> aspnetcore-9.0"
21
22
Configure the managed stack size using the `stackSize` setting in bytes in hexadecimal in the `web.config` file. The default size is 1,048,576 bytes (1 MB) expressed in hexadecimal. The following example changes the stack size to 2 MB (2,097,152 bytes) in hexadecimal 0x200000:
22
23
23
24
```xml
@@ -32,6 +33,26 @@ Configure the managed stack size using the `stackSize` setting in bytes in hexad
32
33
</aspNetCore>
33
34
```
34
35
36
+
:::moniker-end
37
+
38
+
:::moniker range="<= aspnetcore-9.0"
39
+
40
+
Configure the managed stack size using the `stackSize` setting in bytes in the `web.config` file. The default size is 17,825,792 bytes (17 MB). The following example changes the stack size to 100,000 hex, (1 MB):
41
+
42
+
```xml
43
+
<aspNetCoreprocessPath="dotnet"
44
+
arguments=".\MyApp.dll"
45
+
stdoutLogEnabled="false"
46
+
stdoutLogFile="\\?\%home%\LogFiles\stdout"
47
+
hostingModel="inprocess">
48
+
<handlerSettings>
49
+
<handlerSettingname="stackSize"value="100000" />
50
+
</handlerSettings>
51
+
</aspNetCore>
52
+
```
53
+
54
+
:::moniker-end
55
+
35
56
## Disallow rotation on config
36
57
37
58
The `disallowRotationOnConfigChange` setting is intended for blue/green scenarios where a change to global config should not cause all sites to recycle. When this flag is true, only changes relevant to the site itself will cause it to recycle. For example, a site recycles if its *web.config* changes or something changes that is relevant to the site's path from IIS's perspective. But a general change to *applicationHost.config* would not cause an app to recycle. The following example sets this setting to true:
0 commit comments