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

Time:04-15

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>

CodePudding user response:

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

https://stackoverflow.com/tags/httpplatformhandler/info

  • Related