Search code examples
visual-studioconfigurationasp.net-development-servvs-web-site-project

Setting static port number on Visual Studio Dev Server with a WebSite project


I have a WebSite project in Visual Studio 2008 (not a Web Application project!)

How do I set the ASP.NET Development startup port to a static port in a WebSite project?


Solution

  • To specify a port for the ASP.NET Development Server - WebSite / WebServices projects

    1. In Solution Explorer, click the name of the application.
    2. In the Properties pane, click the down-arrow beside Use dynamic ports and select False from the dropdown list. This will enable editing of the Port number property.
    3. In the Properties pane, click the text box beside Port number and type in a port number. Click outside of the Properties pane.This saves the property settings.
    4. Each time you run a file-system Web site within Visual Web Developer, the ASP.NET
      Development Server will listen on the specified port.