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

前端 未结 4 997
天命终不由人
天命终不由人 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:30

    For web site assigning port is not possible form VS Properties Page interface but if you start your web site from command line then you can assign the port (If you want to debug the site you can attach after starting the web site)

    WebDev.WebServer40.exe

    path is

    "C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0\" or "C:\Program Files\Common Files\microsoft shared\DevServer\10.0\"

    ASP.NET Development Server Usage: WebDev.WebServer40 /port: /path: [/vpath:]

    Example:

    WebDev.WebServer40 /port:8080 /path:"c:\inetpub\wwwroot\MyApp" /vpath:"/MyApp"

提交回复
热议问题