Thursday, February 3, 2011
By default, the web server assigns randomly selected port for localhost. For example, if you have created a web site and you are going to test a page named mypage.aspx, when you see the URL might be the following.
Following step are given below to assign a static port for the ASP.NET Development Server
- In the Solution Explorer, right click the name of web site.
- In the Properties pane, you will find Use dynamic ports = True, change Use dynamic ports =False. This will enable editing of the Port number property.
- In the Properties pane, change a Port number.
Now, whenever you will run web site with in Visual Studio Developer, the ASP.NET Development Server will listen on the specified port.