0

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 enter image description here

1 Answer 1

1

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-

6
  • The character '-' is part of the server name Commented 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. Commented 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) ? Commented Jun 20, 2017 at 15:57
  • You need to modify the hosts file at C:\Windows\System32\drivers\etc\hosts with the line: 127.0.0.1 spc-sharepoint- Commented Jun 20, 2017 at 15:58
  • 1
    It doesn't require a restart, but you should close out VS and reopen it after making the change. Commented Jun 20, 2017 at 15:59

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.