I'm trying to start a new ASP.NET 5 project using Visual Studio Community 2015. After I create a project using the ASP 5 Web Application template and run it, 99% of the time the browser will say "Waiting for localhost..." and nothing will happen. I say 99%, because at some very random times it has actually worked and loaded without me having done anything differently.
If I try doing exactly the same but using an empty project instead, I get no issues and it runs fine. However, I'd rather use the template, and in any case, I'd like to know what is causing this issue to avoid future problems.
What could be causing this issue? I already looked at asp.net waiting for localhost forever and every other related question without any luck.
EDIT - This is how bizarre this is: I created a ASP.NET 5 project with the Web Application template, which got stuck in "Waiting for localhost..." every time. After that, I restarted the computer and tried again, and it worked fine (every time, it always works from now on). However, if I copy and paste the whole project folder to any other location (even in the same folder the working project is sitting at) and try running it, it will not work. There's absolutely no differece between the projects as I'm just copying and pasting the folder. What's going on?