Solved

Sharepoint 2010 and Visual Studio 2012 connection issue

Posted on 2014-01-16
3
523 Views
Last Modified: 2014-04-24
I try to connect with Sharepoint 2010 and Visual studio 2012, but iam getting error msg.

I done following steps But still Showing attached Error message
1.      Add your user account as an Administrator on the system.
2.      Add your user account as a Farm Administrator for the SharePoint server.
1.      In SharePoint Central Administration, choose the Manage the farm administrators group link.
2.      On the Farm Administrators page, choose the New button.
3.      Add your user account to the to the WSS_ADMIN_WPG group.
This issue can be fixed by doing the following :-
1.      Added myself as the administrator
2.      Added myself to SharePoint Farm Admin Group
3.      Provided DB Owner access to SharePoint Content DB
I've tried the below steps and it solved my issue. using Sharepoint Power Shell to grant my user the privileges to Content Databases.
Add-SPShellAdmin -UserName domain\username This will add permissions to the config database in SharePoint 2010
Get-SPContentDatabase -WebApplication This will return information on the content database for the desired web application
Add-SPShellAdmin -UserName domain\username -database This will add permissions to the content database for the desired web application
UPDATE  I've also found that SQL Server Agent(SHAREPOINT) Service was disables, enabling it solved my issue one more time.
Host.txt
C:\Windows\System32\Drivers\etc\hosts
Open the file using Notepad with Administrator rights add the ip and URL and then Visual Studio should connect to your SharePoint site.
Error.jpg
0
Comment
Question by:ukerandi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 39976772
HI, am I correct in thinking you have resolved this?
If so, accept your own post as the solution and it will clear up this question for you.
0
 
LVL 10

Author Comment

by:ukerandi
ID: 39981747
Not.
0
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 39981811
To develop SharePoint solutions in VS you have to open VS on the server where SharePoint lives. SharePoint solutions reference SharePoint DLLs which are only found on SharePoint servers
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question