Embedded HTTP Server?

  • Thread starter Thread starter Jon Berry
  • Start date Start date
J

Jon Berry

Does the .NET framework provide any type of HTTP server class that I can
embed in my application?

Thanks!
 
Jon Berry said:
Does the .NET framework provide any type of HTTP server class that I can
embed in my application?

Not the framework itself, but if you search for "Cassini" you will find a
server that is very similar to the one that Visual Studio starts internally
when you run a web project on the file system. Free download from Microsoft,
source code included (if I remember correctly).
http://www.asp.net/downloads/archived/cassini/
http://msdn.microsoft.com/en-us/magazine/cc188791.aspx
 
Jon said:
Does the .NET framework provide any type of HTTP server class that I can
embed in my application?
More or less, in the form of HttpListener, which leverages the Windows
kernel-mode drive for HTTP (introduced with Windows 2003 and also supported
on Windows XP SP2).

HttpListener is rather low-level. If you want to offer service endpoints to
clients (or you can package your services as such), using WCF's ServiceHost
is much more convenient.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top