Search code examples
iis-7httphandlerasp.net-coreasp.net-core-mvc

How can I host ASP.NET 5 (vNext) MVC 6 project under IIS classic mode pool


Made a package using kpm pack Tried to set up IIS7 in classic pipeline mode

I keep receiving

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.

Already tried to

  • add aspnet_isapi.dll to web.config/system.webServer/handlers section
  • add runAllManagedModulesForAllRequests="true" for web.config/system.webServer/handlers section

All aspnet_isapi.dll in ISAPI and CGI restrictions are allowed

Is hosting vNext ASP.NET application under IIS classic mode pipeline possible?


Solution

  • As per current development I think this is not working in Classic IIS Mode. It will only work in IIS Integrated mode.

    Give me few reason.

    1. Till ASP.net MVC 5 request processing is done through MVC Handler and it is not integrated with pipeline like OWIN.

    2. In ASP.net vnext (MVC6) request processing is more or like OWIN. It is like tightly integrated with integrated piplline of IIS ( In Katana it will give you error if you run in Classic mode)