The easiest way to host ASP.NET on a simple web server is to use the Cassini web server, which can be downloaded from MS, including the source code. The following two links help:
After downloading, you need to do the following:
- Comment out lines 92 through 96 of the .cs request so that Cassini does not drop requests coming from hosts other than localhost.
- Run the assembly that creates and installs the Cassini library in the GAC.
- Start the server.
Note Cassini is a console application that simply displays a form. If you are interested in making it work exclusively as a console application, refactoring and deleting a form. It should not be difficult.
source share