Setting static port number on Visual Studio Dev Server with a WebSite project
asp.net-development-serv, configuration, visual-studio, vs-web-site-project
Solution
To specify a port for the ASP.NET Development Server - WebSite / WebServices projects
- In Solution Explorer, click the name of the application.
- 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.
- 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.
- Each time you run a file-system Web site within Visual Web Developer, the ASP.NET Development Server will listen on the specified port.
Problem
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?