Search code examples
.netwindows-servicesweb-frontend

How to create a web interface for a windows service in .Net?


I'm looking for a way to host a web UI in a windows service so that I can configure and control it within a browser. I'd like a simple and lightweight solution, and I don't want to use IIS.

I could probably hand-roll most of it but I was wondering if there was something already made to ease the process.


Solution

  • Since this question was originally posted, much better solutions to the problem have been released.

    If you are targeting .Net Core, it is trivial to self-host ASP.Net Core by using the WebHostBuilder.

    Another solution is Nancy, which is also easy to self-host.