Question

I just learn about WebServiceHost object in my other question. I am however reading and searching about it further. But is it possible to host a simple Website using Webservicehost or something similar? In my application I have to show a User Interface with some information, I have that interface already built up in ASP.NET and I have to recreate it in WinForm/WPF to be usable by my application. However I am thinking if my application can host WebApplication, then I probably can save sometime, and show the interface using Browser Component. I do not want to host website in IIS as we have some part which need to be done through core Windows application.

So, in short my question remain: is it possible to host website with WebServiceHost?

Was it helpful?

Solution

WebServiceHost is intended to host WCF services with web (read HTTP) focus, REST services and the like. Pages are not necessarily services, but content that could come from services.

I think you would fare better looking for some other client side hosting method, one approach here: http://www.west-wind.com/presentations/aspnetruntime/aspnetruntime.aspx

Useful links for WebServiceHost:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top