Cannot connect to the targeted site. This error can occur if the specified site is not hosted on the local system. SharePoint ...

Cannot connect to the targeted site. This error can occur if the specified site is not hosted on the local system. SharePoint solutions work only with locally-installed versions of SharePoint Foundation or SharePoint Server. Remote development is supported only for apps for SharePoint 2013.