SharePoint Connection not available with Visual Studio 2013

I've installed Visual Studio 2013 in my SharePoint 2010 environment. When I try to add the existing SharePoint Connections I've used in Visual Studio 2010 there is always the same error: Remote SharePoint site connections are not supported. The SharePoint site is located at the same server, I'm able to access the Central Administration with Visual Studio 2013, but I can't access my development SharePoint Web Application.

I'm sure I do have access to the configuration database, in Visual Studio 2010 I'm able to delete and add SharePoint Connections without any problems. The URL of the development SharePoint connection (like sp1.sharepoint.contoso.com) is not named like the URL of the Central Administration (like servername:5000). The port of my development SharePoint is 80, but I can't access with servername:80 too. My account is in the group of the local administrators, Visual Studio is started as Administrator and my account is a SharePoint farm administrator and additionally a site collection administrator of all site collections in my SharePoint web application.

Any idea what's wrong with this SharePoint connections?

Thanks in advance. Georg

January 11th, 2014 8:01pm

Can you try the following workaround and see if it helps? First try adding host entry for your server name and if that works change it to sp1.sharepoint.contoso.com.

SharePoint 2013 Visual Studio Project Error Cannot connect to the targeted site

I understand your situation is different than the one mentioned in the blog but given you seem to have all the permission so may be you try and see if the error is because of above issue. Actually if above does not work (assuming your are on your development environment), try adding your account to DB Owner on your site collection database as mentioned here.

http://www.sharemuch.com/2010/03/19/resolving-vs-2010-solution-deployment-issues-for-sharepoint-2010-projects/

Free Windows Admin Tool Kit Click here and download it now
January 12th, 2014 11:57am

Hi Amit,

thank you very much, your solution worked. I've inserted the entry into the hosts file and visual studio 2013 uses my SharePoint connections :)

Georg

January 12th, 2014 12:37pm

I'm having a very similar issue with my Visual Studio 2013 and connecting to SharePoint 2010 site.

I'm logged in to the Virtual Machine server (Windows Server 2008 R2), which has:

  • SharePoint 2010 installed;
  • Visual Studio 2013 installed;
  • I'm am running Visual Studio 2013 as Administrator;
  • I'm a farm admin, site collection admin, full control access on all the sites;
  • Have db_owner on all the databases content and config;
  • i've added the SharePoint site that i'm coding against into the hosts file;
  • I have access to reset/recycle IIS manually;

Here is the problem however. I was able to connect my SharePoint 2010 site to Visual Studio 2013 project one time, after I added the site IP and URL to the hosts file. After that I'm getting the following error message when I try to deploy the solution again:

"Error occurred in deployment step 'Recycle IIS Application Pool': Remote SharePoint site connections are not supported.
Parameter name: project"

And also am getting this error message on the Project Properties:

  • Server Connection: Remote SharePoint site connections are not supported.Parameter name: project
  • Site URL: the same one that i connected with the first time after i added it to the hosts file on the server.

Have been searching all over internet for answers but every "solution" i've seen i've already either tried and it didn't work. Or it was already in place. :(

Please help.

Free Windows Admin Tool Kit Click here and download it now
May 7th, 2015 5:39pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics