asp.net-corewindows-10reverse-proxyiis-10httpplatformhandler

HttpPlatformHandler is deprecated by ASP.NET Core for IIS 10, what is the equivalent configuration?


I was trying to download httpPlatformHandler and I discovered that it has been deprecated by ASP.NET Core.

Now if you want a web app to sit behind IIS, you have to use ASP.NET Core instead.

How does this change the configuration?

Before what I had was something like the following:\

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
           <add
               name="httpplatformhandler_rootWiki"
               path="*"
               verb="*"
               modules="httpPlatformHandler"
               resourceType="Unspecified"
               requireAccess="Script" />
        </handlers>
        <httpPlatform
           stdoutLogEnabled="true"
           stdoutLogFile=".\node.log"
           startupTimeLimit="20"
           processPath="C:\Program Files\nodejs\node.exe"
           arguments=".\node_modules\tiddlywiki\tiddlywiki.js ./wiki --listen port=PORT"
        >
           <environmentVariables>
                <environmentVariable name="PORT" value="%HTTP_PLATFORM_PORT%" />
                <environmentVariable name="NODE_ENV" value="Production" />
           </environmentVariables>
        </httpPlatform>
    </system.webServer>
</configuration>

Solution

  • I edited the Stack Overflow tag to point out that you were misled by an irrelevant article (only ASP.NET Core applications should switch to ASP.NET Core module).

    The simple truth is that HttpPlatformHandler v1.2 is still fully supported by Microsoft.

    But you might want to study the history of HttpPlatformHandler to better understand the relationship between this module and ASP.NET Core module.

    My team/company started to ship our own HttpPlatformHandler v2 which can be considered an alternative.