Skip to content

Commit 2e312cd

Browse files
committed
Use ANCM2 module only for function app
1 parent 1daab47 commit 2e312cd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/WebJobs.Script.WebHost/applicationHost.xdt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
<add name="AspNetCoreModuleV2" image="%XDT_EXTENSIONPATH%\ancm\aspnetcoreV2.dll" xdt:Transform="Insert" />
1717
</globalModules>
1818
</system.webServer>
19-
<location>
20-
<system.webServer>
21-
<modules>
22-
<add name="AspNetCoreModuleV2" xdt:Locator="Match(name)" xdt:Transform="Remove" />
23-
<add name="AspNetCoreModuleV2" xdt:Transform="Insert" />
19+
<location path="%XDT_SITENAME%" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing">
20+
<system.webServer xdt:Transform="InsertIfMissing">
21+
<modules xdt:Transform="InsertIfMissing">
22+
<add name="AspNetCoreModuleV2" xdt:Transform="InsertIfMissing"/>
2423
</modules>
2524
</system.webServer>
2625
</location>
27-
</configuration>
26+
</configuration>

0 commit comments

Comments
 (0)