Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Tuesday, August 29, 2006

ASP.NET hosting with XSP

XSP is a standalone web server written in C# that can be used to run your ASP.NET applications with minimal effort. XSP works under both the Mono and Microsoft runtimes. The code is available from our download page (look for XSP web server) or from the Anonymous SVN repository (module name: xsp).

The easiest way to start XSP is to run it from within the root directory of your application. It will serve requests on port 8080. Place additional assemblies in the bin directory. Other XSP options can be set on the command line, such as the application directory and the port to listen on.

XSP comes with a set of pages, controls and web services that you can use to test the server and see what ASP.NET looks like.

For example, once you install XSP, you can try some samples like this:

 $ cd /usr/lib/xsp/test $ xsp Listening on port: 8080 Listening on address: Root directory: /home/cvs/mcs/class/corlib/Microsoft.Win32 Hit Return to stop the server.

You can now browse to http://localhost:8080 and see various sample programs

SSL support in XSP

XSP supports SSL and TLS Client Certificates. For further details about setting it up, see the UsingClientCertificatesWithXSP document.


Applications can be configured through the web.config file, the full documentation is available from MSDN (, and also a Mono-specific version is available on this site here.

Other extensions

Check out ASP.NET Modules for details on how to support deflate/gzip encodings and authentication.

Continue ASP.NET hosting with XSP…

, , , , , , , ,

Post a Comment