This repository was archived by the owner on Sep 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
examples/03-CreateAppPool Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ if ($pool -eq $null) {
2626
2727 # What version of the .NET runtime to use. Valid options are "v2.0" and
2828 # "v4.0". IIS Manager often presents them as ".NET 4.5", but these still
29- # use the .NET 4.0 runtime so should use "v4.0".
29+ # use the .NET 4.0 runtime so should use "v4.0". For a "No Managed Code"
30+ # equivalent, pass an empty string.
3031 $pool.ManagedRuntimeVersion = " v4.0"
3132
3233 # If your ASP.NET app must run as a 32-bit process even on 64-bit machines
Original file line number Diff line number Diff line change @@ -20,13 +20,17 @@ $pool = Get-Item -Path "IIS:\AppPools\My Pool 3" -ErrorAction SilentlyContinue
2020if ($pool -eq $null ) {
2121 New-Item - Path " IIS:\AppPools" - Name " My Pool 3" - Type AppPool
2222
23+ Write-Host " Managed pipeline mode:"
24+ Get-ItemProperty - Path " IIS:\AppPools\My Pool 3" - name " managedPipelineMode" - value " Integrated"
25+
2326 # Older applications may require "Classic" mode, but most modern ASP.NET
2427 # apps use the integrated pipeline
2528 Set-ItemProperty - Path " IIS:\AppPools\My Pool 3" - name " managedPipelineMode" - value " Integrated"
2629
2730 # What version of the .NET runtime to use. Valid options are "v2.0" and
2831 # "v4.0". IIS Manager often presents them as ".NET 4.5", but these still
29- # use the .NET 4.0 runtime so should use "v4.0".
32+ # use the .NET 4.0 runtime so should use "v4.0". For a "No Managed Code"
33+ # equivalent, pass an empty string.
3034 Set-ItemProperty - Path " IIS:\AppPools\My Pool 3" - name " managedRuntimeVersion" - value " v4.0"
3135
3236 # If your ASP.NET app must run as a 32-bit process even on 64-bit machines
You can’t perform that action at this time.
0 commit comments