Mar 18, 2014 1 min read


I created a project which enables you to self-host the ASP.NET (MVC) pipeline. You can get it on NuGet, and it’s supported on .NET 4.5 and above.


It’s super easy to setup, from the hosting project, include references to hostasp and the main class in your web project (some HttpApplication derived class) and call:

AppHost.HostAndSetup<in T>(string virtualDir, string relativePath, int port) where T : HttpApplication

and you’ll have your webproject serving requests when it returns.

UPDATE: the source code on github