HttpListener ASPX Host Application Sample
This sample demonstrates how to use the features of the HttpListener class (introduced in the .NET Framework version 2.0) to create an HTTP server that routes calls to a hosted ASP.NET application.
The application demonstrates the following tasks:
Enabling Secure Sockets Layer (SSL).
Reading client certificates on a secure connection.
To build the sample using the Command Prompt
Open the Command Prompt window and navigate to the CS subdirectory under the AspxHost directory. For information about required settings and the SDK Command Prompt, see How to: Set Sample Settings.
Type msbuild AspxHostCS.sln at the command line and press Enter.
To build the sample using Visual Studio
Open Windows Explorer and navigate to the language-specific subdirectory under the AspxHost directory.
Double-click the icon for AspcHost<lang>.sln to open the file in Visual Studio, where <lang> could be either CS or VB.
In the Build menu, select Build Solution.
The application is built in the default \Bin or \Bin\Debug directory.
To run the sample
Open the Command Prompt window and navigate to the directory that contains the new executable file.
Type AspxHostCS at the command line and press Enter.