Geeks With Blogs
Clara's Notes on Technology Notes to me and the world

I was looking for a web part that would provide me some sort of navigation inside wiki pages, and I installed a 3rd party farm feature. It didn't really do what I was looking for and I uninstalled it. Afterwards, any page in my site collection gave this error:

[PolicyException: Required permissions cannot be acquired.]
   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +10237966
   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +97

[FileLoadException: Could not load file or assembly 'RH.WikiNavigation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bdb92ef53612be7b' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190

I tried deleting the site collection and recreating it. Same thing. Aaahh! I spent hours looking at config file searching for a reference to the 3rd party assembly.

Solution: A .dll was left behind in C:\inetpub\wwwroot\wss\VirtualDirectories\80\bin. I deleted it and everything was okay again!
 

 

Posted on Wednesday, April 13, 2011 2:37 PM SharePoint | Back to top


Comments on this post: "Required permissions cannot be acquired" after 3rd party feature uninstalled

# re: "Required permissions cannot be acquired" after 3rd party feature uninstalled
Requesting Gravatar...
i want to know how we can prevent this error
Left by murali on Apr 26, 2012 7:40 AM

Your comment:
 (will show your gravatar)


Copyright © Clara Oscura | Powered by: GeeksWithBlogs.net