简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM