Click here to Skip to main content
13,831,573 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hello Friends,
I need your help. I am developing a website in MVC and i need to run this website as a windows service on a server machine.

What I have tried:

Please provide me information on how to achieve it.
Updated 11-Dec-17 5:06am
________________ 11-Dec-17 2:52am
Great challenge! What is next - self-made Sunset?
Why you cannot use IIS?
F-ES Sitecore 11-Dec-17 4:20am
It already does run as a service, the service is called IIS. Why can't the target machine just install IIS rather than something you've written yourself?
________________ 11-Dec-17 5:08am
WCF (Windows Communication Foundation) could be hosted as Windows service and even console application, could have http binding at the endpoint, could build on server-side any html page, but... I think things like redirect, navigation and so on - you should implement yourself...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

All the comments make good points. If you need some of the same logic in a windows service then you should move that into a shared dll that your mvc site can access and also into a new windows service project.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web06 | 2.8.190114.1 | Last Updated 11 Dec 2017
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100