Search code examples
asp.netvisual-studioiisiis-expressiis-8

How to run a web project in Visual Studio 2017?


In Visual Studio 2013, when I run a web project, I click on "Google Chrome". In Visual Studio 2017, when I run a web project, the selection is for "IIS Express (Google Chrome)" or "IIS Express" with other browsers like Internet Explorer. When I click either, I got "This site can’t be reached" error. I don't think I have IIS Express installed on my machine (It's not listed in Administrative Tools).

Does it mean to run a web project from Visual Studio 2017, I will need to install IIS or IIS Express ?

Thank you


Solution

  • Since you confirmed that IIS express is installed properly on your local machine, I think there is something wrong with the IIS Express configuration file. please refer to the following steps.
    Go to the project directory, delete the hidden folder .vs, and restart Visual Studio again. In addition, I suggest you uncheck Edit and Continue in the debugger menu. Here is a related discussion.
    Visual Studio Debug "This site can't be reached"
    https://forums.asp.net/t/2069555.aspx?ERR_CONNECTION_REFUSED
    Feel free to let me know if there is anything I can help with.