When I deploy my visual webpart in sharepoint 2010 environment, VS 2010 throws the error "Error occurred in deployment step ‘Activate Features’: Attempted to perform an unauthorized operation". Hmm !! Interesting Isn't?
The following are the steps to rectify the Error and ensure the smooth deployment into SharePoint Farm solution.
- Open Sharepoint 2010 Central Administration.
- Navigate to Application Management and choose Change site collection administrations
- Select the site collection where deployement has to happen
- Add you windows account as the primary (or) secondary site collection administrator.
Happy SharePointing :-)