1
Vote

Unable to add selected web part

description

I have successfully installed the dwp in Sharepoint 2007, but when I attempt to add the Virtual Earth Web Part to a page I'm getting an error "Unable to add selected web part" and Request for the permission of type "Microsoft.SharepointPermission, Microsoft.Sharepoint.Security"... failed. I've set the trust to Full in the web.config (shown below). Is there something else to be done using this in Sharepoint?
 
<system.web>
<securityPolicy>
  <trustLevel name="Full" policyFile="internal" />
  <trustLevel name="Medium" policyFile="web_mediumtrust.config" />
  <trustLevel name="Minimal" policyFile="web_minimaltrust.config"/>
</securityPolicy>
<trust
  level="Full" 
  originUrl="" 
  processRequestInApplicationTrust="true" 
/>
</system.web>

comments

pwicklund wrote May 27, 2008 at 5:39 PM

Remove the line "<trustLevel name="Full" policyFile="internal" />" from the web.config. Thereafter do an IISRESET. That should take care of it. I'm not sure you need to reference an internal policy. I usually just type level="Full".

Phil

wrote Feb 13, 2013 at 1:34 AM