Unable To Launch Web Server

后端 未结 21 2246
北荒
北荒 2020-12-05 17:15

I have asp.net web application project in visual studio 2012. When I want to start it, I have the following error:

Unable to launch the IIS Express Web server: P

相关标签:
21条回答
  • 2020-12-05 17:34

    I have also experienced this error when running Fiddler at the same time as Visual Studio. Quitting Fiddler and re-running the application did the trick for me.

    0 讨论(0)
  • 2020-12-05 17:35

    The issue got resolved by following the below steps: - Project-> Properties-> Web - Under Servers select local IIS. - Save the setting and Browse again

    0 讨论(0)
  • 2020-12-05 17:37

    I was having similar problem in visual studio 2012:

    ERROR: " Unable to launch IIS Express web server.

    Failed to register URL http://localhost:1030/ for site "MySite" application "/". Error Description: The process cannot use file because it is being used by another process. (0x85968574) "

    REASON : Actually this port numbers are dynamically generated at runtime. It dosent guranteed to be available. If it is acquires by some other process project wont run. So we need to try at another port.

    SOLUTION : There are various solution i found on internet but problem remains unsolved. Finally I tried following solution :

    1. Right click on project in solution Explorer -> Properties
    2. Click on to Web (On LHS).
    3. Look at local IIS Web Server (Which would be radio btn selected by default).
    4. Change port no of project Url e.g : http://localhost:1030/ to http://localhost:45896/ (Possibly Higher than 1024)
    5. Save changes and run application.

    This makes changes in IIS config files and wherever needed automatically so we don't need to change any code explicitly. That's work for me hope will work for You too.

    0 讨论(0)
  • 2020-12-05 17:37

    Try closing Visual Studio and open it again using the "Run as Administrator" option.

    0 讨论(0)
  • 2020-12-05 17:38

    Navigate to IIS express

    cd "C:\Program Files (x86)\IIS Express\"
    

    run this appcmd.exe list site /xml | appcmd delete site /in

    Also, clear your temp files in %temp% and logout, or reboot

    This will delete all the sites, enjoy!

    0 讨论(0)
  • 2020-12-05 17:38

    In my case i tried every post I found on net and nothing works, last thing I done is to change option on project right click/ use visual studio web server and all works well now...

    0 讨论(0)
提交回复
热议问题