Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit ba49576

Browse files
Notes on no managed code
1 parent 5defb70 commit ba49576

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

‎examples/03-CreateAppPool/IIS.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

‎examples/03-CreateAppPool/Web.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ $pool = Get-Item -Path "IIS:\AppPools\My Pool 3" -ErrorAction SilentlyContinue
2020
if ($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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /