Creating my own webserver

  • Thread starter Thread starter Edwin Knoppert
  • Start date Start date
E

Edwin Knoppert

Afaik there was a topic that somehow invoked by a custom exe i could start
the dot net framework to become a webserver *itself*.

Maybe you ever heard of this?
I lost the topic.

The idea is that i want to run ASP.NET application *not* using the Windows
webserver but via that specific feature in .NET OR if possible to use my own
executable/dll.

I'm able to write me a stand-alone isapi dll but knowledge fails me how i
could make use of the aspnet_isapi.dll to pass the requests.

I wonder if this simple approach would work anyway.

Any ideas?
 
Simply use the HttpListener class.

It has been made for self hosting web services.

HTH
Steve
 
Download the source code for CassiniEx:

http://www.systemex.net/CassiniEx/

That source code shows you how to write a web server.

CassiniEx is based on Cassini, which is what VS 2005's and VWD's
internal web servers are based upon :

http://www.asp.net/Projects/Cassini/Download/Default.aspx?tabindex=0&tabid=1

That source code *also* shows you how to write a web server,
although Cassini has fewer features than CassiniEx.



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 
Thanks both!
It seems Cassini is not compiled for v2 and so far (brief moment) i will
have to do some stuff to make that work, maybe later.

Imo the HttpListener might be a valid option, i will start investigating
that one first.
I seen a few examples i'll try first :)

Thanks!
 
Back
Top