Can I host an ASP.NET (MVC5 if it matters) webapplication be hosted inside a normal console, UI or windows-service application? Where to start without web.config?
Background is that I need a master service providing WCF services and other management while I would like to present an UI with ASP.NET MVC.
Having the ASP.NET web application in a seperate assembly and hosting is started by the main assembly would be acceptable.
Because of the many comments I would like to add:
The system already self-hosts some WCF-services. These could also serve HTML but that would be like reinventing the wheel. I do not like to have IIS as dependency, the application should provide everything out of itself. As the WCF-services uses some endpoint-definitions and ServiceHost
it seems tempting to add a required HTML-UI just like other services.
But I am also willing to investigate other methods. But that would mean to have two listeners which seems - not so good.