Attempted to perform an unauthorized operation.

Here is the first post under the category 'Error

and Fix' and it goes like this...









Error : Attempted to perform an unauthorized operation.



Scenario : I was using Visual studio 2005 with webpart extensions, created a custom webpart and added some snippet in the Render override method, and F6, build is successful when tried to deploy i was facing the error (see the screenshot).



Fix : Goto the project properties and inside the debug tab select the start action as 'start browser with url' and enter the valid site collection url. Please check the site collection before you use it over here.










Please note this same error message can occur in other cases also, since its a

generic error message shown by the system when authorization fails. In that case

this fix might not help.



Comments

  1. It works thank you...

    ReplyDelete
  2. This error had almost driven me mad...thank God I found this post.
    Thanks a lot for sharing Rajesh :)

    ReplyDelete

Post a Comment