How can I change IIS Express port for a site

后端 未结 12 1452
死守一世寂寞
死守一世寂寞 2020-11-29 02:32

I want to change the port number on which my website runs while debugging from Visual Studio. I am using Visual Studio 2012, and I am using ASP.NET MVC 4 for my projects I w

12条回答
  •  时光说笑
    2020-11-29 03:04

    Right click on your MVC Project. Go to Properties. Go to the Web tab.
    Change the port number in the Project Url. Example. localhost:50645
    Changing the bold number, 50645, to anything else will change the port the site runs under.
    Press the Create Virtual Directory button to complete the process.

    See also: http://msdn.microsoft.com/en-us/library/ms178109.ASPX

    Image shows the web tab of an MVC Project enter image description here

提交回复
热议问题