Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 535
David Thibault Avatar asked Oct 04 '09 04:10

David Thibault


People also ask

Can a Windows Service have a UI?

Windows services cannot have GUIs, so you will need to either get rid of the GUI or separate your application into two pieces - a service with no UI, and a "controller" application.

How do I host a Web service in Windows Service?

Install and run the serviceOpen Developer Command Prompt for Visual Studio and navigate to the project directory. Type installutil bin\service.exe at the command prompt to install the Windows service. Type services. msc at the command prompt to access the Service Control Manager (SCM).


1 Answers

Here's another option if you want an embedded server, but not a service or any external HTML/ASPX files:

WebConfig - your wireless router has it, now you can too http://www.codeproject.com/KB/game/WebConfig.aspx

like image 124
Derek Schwartz Avatar answered Sep 28 '22 10:09

Derek Schwartz