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

前端 未结 4 991
天命终不由人
天命终不由人 2020-12-16 16:10

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 proje

4条回答
  •  既然无缘
    2020-12-16 16:19

    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.

提交回复
热议问题