How can I change IIS Express port for a site

后端 未结 12 1444
死守一世寂寞
死守一世寂寞 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:02

    To specify a port for a Web application project that uses IIS Express

    1. In Solution Explorer, right-click the name of the application and then select Properties. Click the Web tab.

    2. In the Servers section, under Use Local IIS Web server, in the Project URL box change the port number.

    3. To the right of the Project URL box, click Create Virtual Directory, and then click OK.

    4. In the File menu, click Save Selected Items.

    5. To verify the change, press CTRL+F5 to run the project. The new port number appears in the address bar of the browser.

    From How to: Specify a Port for the Development Server (archive.org backup here).

提交回复
热议问题