Click here to Skip to main content
15,911,035 members
Please Sign up or sign in to vote.
1.00/5 (1 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
Updated 11-Dec-17 4:06am
Comments
________________ 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

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900