I am running some applications from ASP.NET 5 beta7 in RC1. Using HTTPPlatformHandler I can run any of these ASP.NET 5 RC1 applications as the root of the IIS site. But they will not work as a subdir (right-click "add application") on the site. The full answer shows:
HTTP/1.1 404 Not Found Content-Length: 0 Server: Kestrel X-Powered-By: ASP.NET Date: Tue, 24 Nov 2015 14:59:04 GMT
This is not a problem with access rights, since the route is successfully served when the application is the root of the site and uses the same application pool.
The application pool is configured for "no managed code" and an integrated pipeline.
Web.config for the root application is as follows:
<configuration> <system.webServer> <handlers> <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" /> </handlers> <httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="false" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform> </system.webServer> </configuration>
For the supporting application, I had to remove the httpplatformhandler handler in order to avoid the error "It is impossible to add a duplicate collection entry of type" add "with the unique key attribute" name "set to" httpplatformhandler ".
Now that we have to use kestrel / httpplatformhandler, is it possible to run it as an application under the site?
source share