在Visual Studio Dev Server上使用WebSite项目设置静态端口号 [英] Setting static port number on Visual Studio Dev Server with a WebSite project

查看:322
本文介绍了在Visual Studio Dev Server上使用WebSite项目设置静态端口号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2008中有一个WebSite项目(不是Web应用程序项目!)

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

如何将ASP.NET开发启动端口设置为静态端口

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

推荐答案

要为ASP.NET开发服务器指定端口 - WebSite / WebServices项目

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


  1. 在解决方案资源管理器中,单击应用程序的名称。

  2. 在属性窗格中,单击使用
    动态端口
    旁边的向下箭头,然后从
    的下拉列表中选择False。这将允许
    编辑端口号属性。

  3. 在属性窗格中,单击端口号旁边的文本框,并在端口号中键入
    。单击
    之外的属性窗格。这将保存属性设置。

  4. 每次在Visual Web Developer中运行文件系统
    网站时, NET

    开发服务器将侦听指定的端口。

  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.

这篇关于在Visual Studio Dev Server上使用WebSite项目设置静态端口号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆