Click here to Skip to main content
13,549,157 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 asp.net 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.
Posted 10-Dec-17 17:08pm
Updated 11-Dec-17 4:06am
Comments
Dd129 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?
Dd129 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
 
good
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.
  Permalink  

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 |
Web01-2016 | 2.8.180515.1 | Last Updated 11 Dec 2017
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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