Stivni
Stivni

Reputation: 457

ASP MVC 4 in Windows Service

I am currently building a Windows Service. It does its job, so that it not the problem.

To do some monitoring and to be able to do some configuring of the Windows Service, I want to embed a web administration tool, hosted in the Windows Service itself. Just like the ones we know from our routers, network printers etc...

I already found out that I can self host an ASP WebApi in my Windows Service, but that means I still need to have an external webpage that connects to the API. I'd rather have the Windows Service hosting an ASP MVC website to be able to benefit from all its capabilities (I want to embed CSS, Javascript libraries and use SignalR)

Anyone has any idea on how this can be achieved?

Upvotes: 2

Views: 1403

Answers (1)

pedrommuller
pedrommuller

Reputation: 16066

have you tried the servicestack approach? they use a windows servcice as a host, in this example they implement a mvc/service solution

Upvotes: 3

Related Questions