SHASHANGKA SHEKHAR'S BLOG

Hi, I am Shashangka Shekhar, Working with Microsoft Technologies. This is my personal blog where I share some of my experiences.

Solve – localhost refused to connect

With Visual Studio -2015 i received an error while tried to run previous MVC project

the below message appeared in my browser, i was searching for the perfect solution.

This was the few steps how we can solve this issue. Open VS-2015 with existing MVC project > Unload Project like below image.

Right click on unloaded project > Edit .csproj file like below.

Remove the marked lines in below image

  • DevelopmentServerPort
  • DevelopmentServerVPath
  • IISUrl

Finally reload the project

Build & Run the project, it is solved 🙂

Post a comment