Hosting ASP.Net runtime in Winforms app to display asp.net pages from memory stream

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Im currently trying to build an application which uses a webbrowser
control to display formatted data.  The pages I am trying to
display might not be found on the harddrive of the local machine: they
may be on a server or in a compressed file somewhere.  To handle
simple html requests I have created an asynchronous pluggable protocol
to handle any requests and supply the pages from wherever they might be
stored.

What Im trying to do however is display ASP.Net pages.  I dont
have a web server to use to serve these file so I have to use the
winforms application to host the asp.net runtime.  Im managed to
implement that and have been able to display asp.net pages in the
webbrowser control on the winforms app but the only way ive been able
to do this is by having the actual web application structure recreated
on the local machine.

I need to be able host the web site files in various different places,
possibly compressed so I need to pass a fake domain url to the asp.net
runtime when creating the application domain and then pass a memory
stream or something when processing the files rather than a relative
path.

I was wondering if anyone had any ideas on how to achieve this.


View the full article
 
Back
Top