Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 20, 2012 06:10 AM by imran_ku07
Dec 18, 2012 02:03 PM|LINK
This is my first ever ASP.Net project, so hopefully my problem will be easilly fixed.
I have a solution containing 2 projects. One is Windows Service, the Second is a MVC 4 Application.
I'm using Visual Studio 2012.
I'm running HttpSelfHostServer in the Windows Service. So far so good.
What I need to do, is get that HttpSelfHostServer to serve the MVC application (Basically I want a Windows service with a web interface).
So far, I'm trying to get the config.Routes.MapHttpRoute to point to the MVC App but I've had no luck.
Can anyone point me in the right direction please? I've read a few blogs post and other article in MSDN but I'm only getting myself more and more confused atm.
Thanks for reading.
Dec 18, 2012 03:32 PM|LINK
you will need to write code to host the MVC runtime. there is sample code for web.api, so reading the source may get your started. I'd download and get a buildable version of MVC before your started, in case you needed to make some source changes in MVC.
Dec 20, 2012 06:10 AM|LINK
I think there are lot of chances that this
will be supported