1
votes

When deploying a SharePoint visual web part project, I encountered some privilege issues.

  1. If I run VS2012 with a domain account which has full control to SharePoint site. The following error message occurred: To interact with SharePoint projects in Visual Studio, your system user account must have administrator privileges
  2. Then I try to run VS2012 with Administrator, another error message occurred. Error Error occurred in deployment step 'Retract Solution': A timeout has occurred while invoking commands in SharePoint host process.
  3. I try to add the original domain account to local Administrator group and WWS_ADMIN_WPG, and try to run VS2012 with it, the same message in 1 occurred.

I want to give my domain account all Administration privileges which are needed to interactive with SP project. But it seems that local Administrator group and WWS_ADMIN_WPG still don't have enough permission to do this.

How can I solve these issues? Thanks in advance!

1
Did you try to run Visual Studio as administrator (Right click -> "Run as administrator")?Greg
Hi @Greg, first, I create the project, added a visual web part and deployed it. These above are all done using VS2012 running as administrator. Then, I add a second visual web part and try to deploy it using administrator and it said it must be SP farm admin to re-deploy it.Johnny

1 Answers

0
votes

Try running VS as admin, by right clicking on Visual studio icon, then clicking "Run as administrator"