You’ve setup your SharePoint development environment to use host named site collections within a single web application.
In Visual Studio 2013 when you attempt to create a Server Explorer connection to a local host named site collection, the server explorer will not refresh;
and you receive the following error message;
The problem is that Visual Studio thinks your local site collection is remote, the solution is to edit your HOSTS file and place your local HNSC site collections in there pointing at 127.0.0.1
Save the file and refresh your Server Explorer connections in Visual Studio