1.在Solution Explorer里面单击选中您要设置的Web项目名称。

2.按F4来打开属性面板,单击Use dynamic ports旁边的下拉列表,然后选择false。这样会激活Port number属性。

3.然后,单击Port number旁边的文本框,在里面输入一个固定的端口号。这样运行Web项目时,VS2005自带的Web服务器就会在您刚才指定的端口上监听。

How to: Specify a Port for the ASP.NET Development Server
http://msdn2.microsoft.com/en-us/library/ms178109.aspx

相关文章:

  • 2021-12-01
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-04-28
  • 2021-09-04
  • 2022-12-23
猜你喜欢
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-09-25
相关资源
相似解决方案