Thursday, May 01, 2014

Attempted to perform an unauthorized operation

Attempted to perform an unauthorized operation Visual studio,SharePoint Deployment

Error occurred in deployment step 'Activate Features': Attempted to perform unauthorized operation.
If you happen to see this error in your visual studio,then reason is your account has permission to access the Farm but not on your site collection where you trying to deploy the solution.

To resolve this issue Go to your Central Administration-->Application Management header-->Change Site collection administrators under "Site Collection" header.
Add your account try again the deployment.