Quantcast
Channel: All About ASP.NET and ASP.NET Core 2 Hosting BLOG
Viewing all articles
Browse latest Browse all 427

ASP.NET Hosting - ASPHostPortal.com :: How to Specify a Port for the ASP.NET Development Server

$
0
0

How to Specify a Port for the ASP.NET Development Server

When you use the Visual Studio Development Server to run a file-system Web site or a Web application project, by default, the Visual Studio Development Server is invoked on a randomly selected port for localhost. For example, if you are testing a page called MyPage.aspx, when you run the page on the Visual Studio Development Server, the URL of the page might be the following:

http://localhost:31544/MyPage.aspx

If you want to run the Visual Studio Development Server on a specific port, you can configure the server to do so.
Visual Studio cannot guarantee that the port you specify will be available when you run your file-system Web site. If the port is in use when you run a page, Visual Studio displays an error message.

 

To specify a port for the Visual Studio Development Server in a Web Site Project

  •     In Solution Explorer, click the name of the site.
  •     In the Properties pane, click the down-arrow beside Use dynamic ports and select False from the drop-down 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.

To specify a port for the Visual Studio Development Server in a Web Application Project

  •     In Solution Explorer, click the name of the site.
  •     In the Project menu, click Properties.
  •     Click the Web tab.
  •     Click Specific port and enter a port number.

Best ASP.NET Hosting Recommendation

ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers ASP.NET hosting starts from $1/month only. They also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable ASP.NET Hosting, ASPHostPortal.com should be your best choice.

Save


Viewing all articles
Browse latest Browse all 427

Trending Articles