Getting ERR_CONNECTION_REFUSED when running .NET API on localhost from Visual Studio
I’m a newbie in .NET coding, I’m trying to run a project using .NET using IIS Express on Google chrome, I get this error : ERR_CONNECTION_REFUSED
Here is what I’ve tried so far, and it does not work:
While creating the database connection try to use port number with localhost it worked for me so might go same with you as well…. Good luck.
In my case, this issue was resolved by removing the .vs
file followed by restarting Visual Studio as an Administrator