Wednesday, August 19, 2009

System.Security.Policy.PolicyException: Required permissions cannot be acquired.

ErrorSystem.Security.Policy.PolicyException: Required permissions cannot be acquired.

Reason:
The Trust level may be Mimimal.

Solution:
1.  Go  to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config
2.  Open "Web.Config"
3.  Find <trust level="WSS_Mimimal" originurl=""></trust>
4.  Replace by <trust level="Full" originurl=".*"></trust>
5.  Save and Exit
6.  Open your Sharepoint Website web.Config.
7.  Do the steps 3 & 4.
8.  Save and Exit

That's It...

4 comments:

  1. woooow.... Thanks million. Your answer is very simple. But directly to the point.
    By the way, it works for SharePint 2010 as well.

    Thanks again bro.

    ReplyDelete
  2. After looking everywhere for the solution for 2days, I got the solution here. Thank you so much for sharing this. To let you know it's on SharePoint 2010.

    ReplyDelete
  3. It failed when I tried replacing the whole line however just replacing "WSS_Minimal" with "Full" did the trick.

    ReplyDelete