Jason Coyne
Jason Coyne

Reputation: 6636

Is it possible to host an ASPX web page, in a stand alone application, outside of IIS

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.

Upvotes: 2

Views: 1490

Answers (4)

Mark Brackett
Mark Brackett

Reputation: 85665

ScottHa has an article on hosting Cassini for unit tests. I've used it before, with a couple of slight modifications, for unit tests and it works great.

Not sure what differences you get by just using HTTP.SYS directly, but either should work pretty well, I think.

Upvotes: 0

blowdart
blowdart

Reputation: 56500

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

Upvotes: 5

Henk Holterman
Henk Holterman

Reputation: 273274

The tiny webserver that is built into VS is called Cassini and you can download the source somewhere. Not sue about versions and licenses.

Cassini provides (demonstrates) the ASP Hosting stuff.

Upvotes: 1

Chen Kinnrot
Chen Kinnrot

Reputation: 21015

as i see it, the most simple solution for you is to put a browser control on your app, in the browser put a silverlight app,

if you wanna share data between the app and the silverlight you can try to expose a wcf service from the app to the silverlight if it works its also very simple.

Upvotes: -1

Related Questions