Thursday, July 21, 2011

Error occurred in deployment step 'Retract Solution': Attempted to perform an unauthorized operation.

I have created one Sharepoint 2010 WebApplication which uses classic based authentication and add myself as "Site Collection Administrator", then I need to convert Webapplication authentication type "classic based authentication" from "Claims Based Authentication". Then when that user tried to deploy solution it gives this error.

"Error occurred in deployment step 'Retract Solution': Attempted to perform an unauthorized operation."

How to solve this one?

1> In SharePoint 2010 go to Central Administration - Manage web applications (under Application    Management).

2> There you select the SharePoint application and press "User Policy" in the ribbon. Over there you add your user you want  deploy with and give him full control.
Disha Shah

8 comments:

  1. Sharda

    You are welcome!!!

    Disha Shah

    ReplyDelete
  2. Hi Disha,
    I am facing same problem, but it is for some projects only.Other are working fine.I have full control.Any idea why it is happening?

    ReplyDelete
    Replies
    1. Hi Vinod,

      I was facing same problem but after applying all these it stared working!!!

      Doe this blog helps to your problem?

      Disha Shah

      Delete
  3. Hi ,
    I need to export itmes from list to a word template.
    please help me Disha

    ReplyDelete
    Replies
    1. hi

      You can use Microsoft.Office.Interop.Word Namespace to export the listitems to word template.

      Please look at this link for more information and let me know if you need ..

      http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/8aa3fa6d-2078-4bf7-ad9d-1ff5e689ecce

      Thanks
      Disha shah

      Delete