“Unable to launch the IIS Express Web server” error

前端 未结 25 2653
梦谈多话
梦谈多话 2020-11-30 02:48

I receive this error when trying to launch IIS Express from Visual Studio with a project that\'s configured to listen to an address other than localhost. Visual Studio free

相关标签:
25条回答
  • 2020-11-30 03:24

    In Debug > Website Properties.

    change port number in Project Url to any nearest value and save

    0 讨论(0)
  • 2020-11-30 03:25

    I had the same issue, but with a different cause that may help others.

    Use a commandprompt in admin mode for this: - TYPE: netsh http show iplisten If there are any IP entries: - TYPE: netsh http delete iplisten Repeat until the list is empty. Check if IIS Express starts now.

    Hope this helps, Niels

    0 讨论(0)
  • 2020-11-30 03:26

    Simply start your Visual Studio as Run as Administrator

    Thanks,

    0 讨论(0)
  • 2020-11-30 03:27

    In my case i tried following things to fix this problem.

    1. Delete the iisexpress folder from "MyDocuments"

    2. Go to Solution Explorer --> Right click on the Project --> Go to Properties --> Go to Web tab --> See the Servers --> click on radio button "USe Visual Studio Developtment Server"

    I hope this will help you.

    0 讨论(0)
  • 2020-11-30 03:29

    The one thing that fixed this for me was using the following line in the <bindings> section for my site in the applicationhost.config file:

    <bindings>
        <binding protocol="http" bindingInformation="*:8099:" />
    </bindings>
    

    The key was to simply remove localhost. Don't replace it with an asterisk, don't replace it with an IP or a computer name. Just leave it blank after the colon.

    After doing this, I don't need to run Visual Studio as administrator, and I can freely change the Project Url in the project properties to the local IP or computer name. I then set up port forwarding and it was accessible to the Internet.

    EDIT:

    I've discovered one more quirk that is important to getting IIS Express to properly serve external requests.

    1. If you are running Visual Studio/IIS Express as an administrator, you must not add a reservation to HTTP.SYS using the "netsh http add urlacl ..." command. Doing so will cause an HTTP 503 Service Unavailable error. Delete any reservations you've made in the URLACL to fix this.

    2. If you are not running Visual Studio/IIS Express as an administrator, you must add a reservation to the URLACL.

    0 讨论(0)
  • 2020-11-30 03:29

    Try this:

    1. Open Properties of your solution
    2. Go to web
    3. under LOCAL IIS, Change written port number to any other port number and create a new virtual directory.
    0 讨论(0)
提交回复
热议问题