Solved

Visual Studio 2010 Web Part Project Prompted to Run at Elevated Permissions

Posted on 2011-03-01
5
1,078 Views
Last Modified: 2012-05-11
I am new to SharePoint development.  I am working with Visual Studio 2010 C#, SharePoint 2010 and C#.  I have created a SilverLight WebPart.  When I attempt to debug or deploy the WebPart Visual Studio prompts me saying that it needs to run using elevated permissions.  Visual Studion then prompts me for userID and credentials of an eleveated permission user.  I have been entering the domain adminstrator credentials.  Visual Studio restarts and I'm off and running.  What I am confused about is that I am configured as an adminstrator of the SharePoint site with 'Full Control'.  What am I getting prompted for elevated permissions?
Thanks in advance,
Terry
0
Comment
Question by:wahlster
[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
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:navdeepmadan
ID: 35014437
please open the visual studio with elevated permission or add the domain user in debugging (Local) group. Debugger requires the elevated permission to execute.
0
 

Author Comment

by:wahlster
ID: 35021128
Hi Navdeepmadan,
I'm interested in how to the domain user in debugging (local) group.  Can you please elaborate on steps necessary to accomplish this?
Thanks again,
Terry
0
 
LVL 5

Expert Comment

by:navdeepmadan
ID: 35024254
Hello Terry,

Visual studio allows debugging to only those who is part of local debugging group. By default, local administrator user is part of this group. if you start the visual studio in local administrator group , you will not see this issue.

Steps of verify :-

1) Go to start :- programs -  Visual Studio 2010 - Right Click on "Visual Studio 2010" -> Run as administrator
2) Now try to reproduce the issue

Resolution of this issue :-

1) Go to start -> open the Run prompt -> trype services.msc - >Debugger Users group
2) Add your domain user in this group
3) try to reproduce this steps.


For windows 7 :--
 [[Debugger Users group enables you to remotely access debugging components
> on other machines.]]

> [[Debug programs
> Computer Configuration\Windows Settings\Security Settings\Local
> Policies\User Rights Assignment

> Description
> Determines which users can attach a debugger to any process. This
> privilege
> provides powerful access to sensitive and critical operating system
> components.

> This user right is defined in the Default Domain Controller Group Policy
> object (GPO) and in the local security policy of workstations and servers.

> By default, only administrators and LocalSystem accounts have the
> privileges
> to debug programs.]]

Thanks,

0
 

Accepted Solution

by:
wahlster earned 0 total points
ID: 35172952
I order for your user account to be considered a SharePoint administrator you account need to be a member of the following groups.  Once you have done this you can simply right click on Visual Studio and select 'Run as Administrator'.  Visual Studio will start using your credential but with administrative rights.  The groups you need to be part of are:

User must be in the local administrators group
User must be in the WSS_ADMIN_WPG group
User must be SharePoint Farm administrator
User must be db_owner of the corresponding content database
User must be Site Collection administrator of the Site Collection Where Custom Solution will be deployed to
0
 

Author Closing Comment

by:wahlster
ID: 35205047
Researched and this was the solution that I was looking for.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
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…

749 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