Sunday, February 22, 2009

HowTo Use Microsoft .NET ASP.NET Development Server as Standalone Web Server

Hi,

A little post in order to explain howto use ASP.NET Development Server as Standalone Web Server.

First of all where is located the ASP.NET Development Server on your computer ?

On Windows XP :

C:\WINDOWS\Microsoft.NET\Framework\[VERSION]\WebDev.WebServer.exe

On Windows Vista :

C:\Program Files\Common Files\microsoft shared\DevServer\9.0\WebDev.WebServer.exe

You can now use it to start Standalone Web Application for local Presentation for example or for your ASP.NET Product Demo.

Here is the different's parameters in order to start your standalone Web Server

WebDev.WebServer /port: /path: /vpath:

Port Number : Between 1 and 65535 (Default is 80)
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 '/')

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

WebDev.WebServer /port:8080 /path:"D:\WebSite" /vpath:"/MyApplication"

No comments:

Post a Comment