How to enable external request in IIS Express?

前端 未结 26 1131
借酒劲吻你
借酒劲吻你 2020-11-22 01:55

How can I enable remote requests in IIS Express? Scott Guthrie wrote that is possible but he didn\'t say how.

26条回答
  •  囚心锁ツ
    2020-11-22 02:44

    Combining answers in this thread, this is how I fixed it(Visual Studio 2019):

    1. Start Visual Studio as an Administrator and Run your Web Service as you normally do.

    2. Find IIS Express icon on the taskbar, right click on it then click "Show All Applications".

    3. Select your Web Service and note the config path displayed below. Click on the config file to open it for editing.

    4. Find your web service(example search for your port) in this config file then find a line like this: *:yourport:localhost

    5. Add a new line after that like this:

      :yourport:*

    In this case no need to create bindings with specific ip address which could change in the future.

    I hope this helps someone out there.

提交回复
热议问题