a solution for self-hosting ASP.NET MVC
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Properties
.gitattributes
AppHost.cs
HttpListenerWorkerRequest.cs
Listener.cs
README.md
StaticFileHandlerModule.cs
hostasp.csproj
hostasp.csproj.vspscc
hostasp.sln
hostasp.v11.suo
log4net.config
packages.config

README.md

hostasp

a solution for self-hosting ASP.NET MVC

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

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

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