I have say 3 projects: one the MVC2 app, the second is Windows Service and dll library which is used by Service. I can install and uninstall the service to the system but I need the MVC to be “on” when the service is up and “off” when it is down.
Any other things like IIS is way more appropriate but lets say they are unavailable.
Sorry for my english. In other words, I need to host MVC web app inside my C# Windows Service.
ASP.NET MVC just introduced self-hosting with MVC4 because it replaced the WCF Web API. Before this MVC was oriented towards human-readable websites and not web services, so it didn’t make sense to have self-hosting til now. Here is the article. If you are limited to MVC2 then I don’t believe this is possible.