Jul 19 2007

ASP.NET Development Server

Category:Bil@l @ 06:29

In this post I will show you how to setup the ASP.NET Development Server manually and bind it to a specific Port Number and Website without having to run it by default from the VS 2005 IDE.

Open your CMD window and browse to: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

In that path, you will find the WebDev.WebServer.exe which is the ASP.NET Development Server present in Visual Studio 2005.

Now, if you type: WebDev.WebServer.exe /?, you get such a window:

WebDev.WebServer Help

 

So let us configure the WebDev.WebServer.exe to run on a Port number of our choice and attach a sample website to it:

WebDev.WebServer.exe /port:9999 /path:"C:\Inetpub\wwwroot\website1"

That's it! Now you can see on your taskbar a small window icon representing the ASP.NET Development Server saying that it is bound to port - 9999.

Open the browser of your choice, go to : http://localhost:9999/ and here it is, your website is running!

Hope this post is helpful for you!
Regards

Tags:

Comments are closed