You can prevent .NET Core (when it's the root application) from intercepting requests in a sub-directory by removing its handler mapping in the sub-directory's web.config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<trust level="Full" />
</system.web>
<system.webServer>
<handlers>
<remove name="aspNetCore" />
</handlers>
</system.webServer>
</configuration>This is useful in scenarios where you want .NET Core to be the main (i.e. root) application but want to run to another application in a sub-directory (e.g. .NET Framework, PHP, etc.)
Article ID: 1742, Created: 2/1/2024 at 2:45 PM, Modified: 1/21/2026 at 4:40 PM