Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

Why it is needed to remove then add the aspNetCore handler for sub application? #760

@Kimserey

Description

@Kimserey

In order to make ASP.NET Core sub application of another ASP.NET Core application accessible, the web.config must remove then add the aspNetCore.

<system.webServer>
  <handlers>
    <remove name="aspNetCore"/>
    <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
  </handlers>
  <aspNetCore processPath="dotnet" arguments=".\HelloWorld.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout">
  </aspNetCore>
</system.webServer>

If the handler is not removed, I will get a 500 internal error while if the handler is removed without adding back aspNetCore after, I would get a 403 Forbidden access.

I did not find any explanation in the documentation. Could someone provide details on why it is needed remove then add the aspNetCore handler?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions