i have a problem, sorry for my english. I have a virtual server where I have installed SharePoint 2013 Enterprise, SQL Server 2012 R2 and Visual Studio 2013. When opening visual studio 2013 and trying to create a sharepoint solution, this one displays me an error box, stating "Can not connect to the target site, this error can occur the specified site not being hosted on the local system." . And I can not find the solution, if you need additional information, I can add it in the question 
Add a comment |
1 Answer
You've got a hypen in your URL (spc-sharepoint**-**:8080). Remove that and try again.
EDIT: You need to modify the hosts file at C:\Windows\System32\drivers\etc\hosts with the line:
127.0.0.1 spc-sharepoint-
- The character '-' is part of the server nameAriel Ignacio– Ariel Ignacio2017-06-20 15:38:33 +00:00Commented Jun 20, 2017 at 15:38
- The next step would be to add a hosts file entry in the format of 127.0.0.1 spc-sharepoint- on the SharePoint server itself.user6024– user60242017-06-20 15:40:38 +00:00Commented Jun 20, 2017 at 15:40
- Sorry, have to add the ip 127.0.0.1 or ip from the same server (10.10.1.1xx) ?Ariel Ignacio– Ariel Ignacio2017-06-20 15:57:17 +00:00Commented Jun 20, 2017 at 15:57
- You need to modify the hosts file at
C:\Windows\System32\drivers\etc\hostswith the line:127.0.0.1 spc-sharepoint-user6024– user60242017-06-20 15:58:01 +00:00Commented Jun 20, 2017 at 15:58 - 1It doesn't require a restart, but you should close out VS and reopen it after making the change.user6024– user60242017-06-20 15:59:24 +00:00Commented Jun 20, 2017 at 15:59