0

I'm programming with ASP.NET MVC. I tried to launch the application multiple times([Ctrl] + [F5]), restarted Visual Studio and restarted my PC, however I still get the error message 'Unable to connect to the Visual Studio Development Server.' If I just press [F5] I get the error message 'This site can’t be reached localhost refused to connect.' How can I get rid of these errors?

1 Answers1

1

None of these solutions worked for me, If you have installed default Windows IIS (Which comes with your windows) and have access to it, try to use it, that solved my problem, simply Add new website or new application there and it's done, anyway it's weird that IIS Express is unable to open up the page. If you need to trace it, just attach it to a process using ctrl + alt + p short keys and check Show process for all users and select w3wp.exe (sometimes need to refresh the website in browser to find w3wp.exe) and then hit the Attach button, you'll be asked for run as administration if it has not been already run as administrator.

Muhammad Musavi
  • 2,512
  • 2
  • 22
  • 35