I have a thick GUI application (possibly running as a service, but also just as a normal application) on a desktop. I would like to expose a web interface to the application for some remote monitoring and control of the application.

I currently am hosting a WCF service that just returns HTML in the application, which works fine, but optimally I would like to use an ASP.Net application, or a silverlight application.

Is there any way to host the aspx or silverlight app from within my app?

As part of this, I would like to be able to share data between the two applications.

Accepted Answer

Yes. You don't even need Cassini, as it wraps ASPX hosting bits already present in the framework it's all inside System.Web.Hosting

MSDN has a good article on it all

Written by blowdart
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki