When localhost refused to connect error in visual studio ?

I had a similar issue. Try this and it should work
  1. Go to your project folder and open .vs folder (keep your check hidden item-box checked as this folder may be hidden sometimes)
  2. in .vs folder - open config
  3. see that applicationhost config file there? Delete that thing.(Do not worry it will regenerate automatically once you recompile the project.)

Post a Comment


  1. This is an apparently common problem, it should be reported adequately. I paid to use this software and have been working to solve this for almost an entire month now; all with little to no help from Microsoft support. I really need an IDE.