Problem description: Request for the permission of type 'Microsoft.SharePoint.Security.
SharePointPermission, Microsoft.SharePoint.Security, Version=1
After installing a new SharePoint Web Part, it is not working and you get an error like Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.Solution: Change the trust level for your SharePoint Web Part
This means the trust level of your newly installed SharePoint Web Part is not set correctly. To fix this, follow these steps:
Your newly installed SharePoint Web Part will be added to the global assembly cache (GAC) and everything should work fine now.
Fixed my laptop not going into standby
-
A while ago my laptop wouldn’t properly go into standby mode anymore; the
screen turns black but the whole laptop would go into overdrive with only a
hard ...
3 years ago
That is not the only solution. You can also increase the trust level of the SharePoint Site. Furthremore, you can also deploy a CAS (code access security file) and explicitly say which permissions your web parts can access (i.e. HD, registry).
Deploying to the GAC is the best practice, but it will not work in the most secure SharePoint admin setups. Putting your assemblies inside the GAC will allow them to do anything in code and not all admins will allow that.
Bart Czernicki
www.silverlighthack.com
great, this wroks, thanks sooooo much, i've been searching for this all day long
Post a Comment