Sunday, February 22, 2009

ASPX Web Server

If you cannot or do not want to use IIS as your Web server, you can still test your ASP.NET pages by using the ASPX Web Server.

About
The ASPX Web Server is a standalone web server written in C# that can be used to run your ASP.NET applications with minimal effort.

Features
  • You are developing ASP.NET Web pages while working with Windows XP Home Edition, which does not support IIS.
  • The ASP.NET Web Server only accepts authenticated requests on the local computer. This requires that the server can support NTLM or Basic authentication.
  • Hosts and runs multiple ASP.NET applications.
  • ASPX Web Server fully supports all ASP.NET features.
  • Can guarantee that the port you specify will be available when you run your ASP.NET applications.
  • Windows Shell integration, one click to run ASP.NET applications.

Running the ASPX Web Server

Run by command line :

ASPX.WebServer.exe /port: /path: /vpath:/open
Command line options
  • Port number : Between '1' and '65535' (Default is '80') or use 'auto' to use dynamic port
  • Physical Path : A valid directory on your hard disk where is located your Web Site
  • Virtual Path : A virtual path for your Web Application (Default is "/")
  • Open : auto open in web browser

Here is a example of starting standalone Web Site by command-line :

ASPX.WebServer.exe /port:auto /path:"D:\WebSite" /vpath:"/MyApplication" /open

No comments:

Post a Comment