i have done that. It doesn't work. It gives me the warning " Unable to launch IIS Express" and " Localhost refused to connect.
You can try to change the port number to solve this problem.
Project Properties → Web → Servers → Project Url, and don't forget to click Create Virtual Directory.
If this method does not solve your problem, then you can also try to delete the applicationhost.config from the .vs folder(The applicationhost.config file is in the config folder under your vs folder).
Best regards,
Sam
IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
Contributor
3370 Points
1409 Posts
Re: Locahost refused to connect | Visual Studio 2015
Jun 08, 2020 02:52 AM|samwu|LINK
Hi adewumirahman,
You can try to change the port number to solve this problem.
Project Properties → Web → Servers → Project Url, and don't forget to click Create Virtual Directory.
If this method does not solve your problem, then you can also try to delete the applicationhost.config from the .vs folder(The applicationhost.config file is in the config folder under your vs folder).
Best regards,
Sam